From f3d7d7dba085f4e676c1d901122fb021a3553644 Mon Sep 17 00:00:00 2001 From: Peter Seprus Date: Sun, 7 Aug 2022 17:28:04 +0200 Subject: [PATCH] Extend random name generator (#1551) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Extend random name generator * Format sources Co-authored-by: あく --- lib/toolbox/random_name.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/lib/toolbox/random_name.c b/lib/toolbox/random_name.c index 4810a067..5a537439 100644 --- a/lib/toolbox/random_name.c +++ b/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);