Parcourir la source

Extend random name generator (#1551)

* Extend random name generator
* Format sources

Co-authored-by: あく <alleteam@gmail.com>
Peter Seprus il y a 3 ans
Parent
commit
f3d7d7dba0
1 fichiers modifiés avec 8 ajouts et 9 suppressions
  1. 8 9
      lib/toolbox/random_name.c

+ 8 - 9
lib/toolbox/random_name.c

@@ -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[] = {
@@ -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);