Skip to content

Commit

Permalink
Extend random name generator (#1551)
Browse files Browse the repository at this point in the history
* Extend random name generator
* Format sources

Co-authored-by: あく <[email protected]>
  • Loading branch information
ppseprus and skotopes authored Aug 7, 2022
1 parent 67a9753 commit f3d7d7d
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions lib/toolbox/random_name.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,10 @@ void set_random_name(char* name, uint8_t max_name_size) {
rand_generator_inited = true;
}
const char* prefix[] = {
"ancient",
"hollow",
"strange",
"disappeared",
"unknown",
"unthinkable",
"unnamable",
"nameless",
"my",
"ancient", "hollow", "strange", "disappeared", "unknown",
"unthinkable", "unnamable", "nameless", "my", "concealed",
"forgotten", "hidden", "mysterious", "obscure", "random",
"remote", "uncharted", "undefined", "untravelled", "untold",
};

const char* suffix[] = {
Expand All @@ -32,6 +27,10 @@ void set_random_name(char* name, uint8_t max_name_size) {
"entree",
"opening",
"crack",
"access",
"corridor",
"passage",
"port",
};
uint8_t prefix_i = rand() % COUNT_OF(prefix);
uint8_t suffix_i = rand() % COUNT_OF(suffix);
Expand Down

0 comments on commit f3d7d7d

Please sign in to comment.