From 2d3cbe239d058922e7afcd7a7a0b75d30aa970f0 Mon Sep 17 00:00:00 2001 From: Samirakis Date: Sat, 19 Oct 2024 18:43:17 +0300 Subject: [PATCH] Update language.dm --- code/modules/mob/language.dm | 20 +++++++++++--------- 1 file changed, 11 insertions(+), 9 deletions(-) diff --git a/code/modules/mob/language.dm b/code/modules/mob/language.dm index cea88c5e8f0..d74eb3ea639 100644 --- a/code/modules/mob/language.dm +++ b/code/modules/mob/language.dm @@ -257,10 +257,9 @@ flags = RESTRICTED syllables = list("qr","qrr","xuq","qil","quum","xuqm","vol","xrim","zaoo","qu-uu","qix","qoo","zix","*","!") -/datum/language/skrell/get_random_name() // Name generator authors: @saichi23 & @cadavrik - var/full_name = "" - +/datum/language/skrell/get_random_name() // Name generator authors: @saichi23 && @cadavrik // Now I love making list in list in list in list in list + // Two sublists were made by authors so that the names would turn out most consonant for reading (in a way that's possible for skrells) var/list/ru_name_syllables = list( list( // list 1 list("заоо","зао","зикс","зо","йуо","кью","кьюм","кси","ксу","квум","кву", // sublist1 @@ -268,7 +267,7 @@ "рио","сейу","тсой","уль","улур","урр","ур","цу","эль","эо","эу"), list("аг","вум","вул","вол","гли","зи","заоо","зао","зикс","зуо","зук","зуво", // sublist2 - "икс","илл","ис","йук","кву","квум","куум","куо","куа","куак","кул","квол", + "икс","ил","ис","йук","кву","квум","куум","куо","куа","куак","кул","квол", "кью","кьюа","кэ","кин","кии","кс","ки","киу","кос","лоа","лак","лум","лик", "лии","ллак","мзикс","мвол","ори","ору","орр","ррум","ру","руум","руа","рл", "сэк","су","сиа","тейе","тейку","тсу","туа","туи","ту","тал","уат","уок","урр", @@ -286,19 +285,22 @@ ), ) + var/full_name = "" + var/max_add_syllables = 2 // Maximum of additional syllables for first and second names + for(var/i=0, i<2; i++) // First and second names, making from 2-3 syllables each var/apostrophe = "'" var/new_name = "" - var/list/using_syllables_list = pick(ru_name_syllables) // We use only one list for the first name and one list for the second name, without mixing syllables sublists between lists + var/using_list = rand(1, LAZYLEN(ru_name_syllables)) // We use only one list for the first name and one list for the second name, without mixing syllables from different lists - new_name += pick(using_syllables_list[1]) // The first syllable is only from the first sublist + new_name += pick(ru_name_syllables[using_list][1]) // The first syllable is only from the first sublist - for(var/additional_syllables = pick(1,2), additional_syllables>0, additional_syllables--) // Additional 1-2 syllables, taken from sublist2 + for(var/additional_syllables = rand(1, max_add_syllables), additional_syllables>0, additional_syllables--) // Additional 1-2 syllables, taken from sublist2 if(prob(50)) new_name += apostrophe - apostrophe = "" // Adding "'", but only once for first and second names + apostrophe = "" // Adding "'" with chance, but only once for first and second names - new_name += pick(using_syllables_list[2]) + new_name += pick(ru_name_syllables[using_list][2]) full_name += " [capitalize(new_name)]"