Skip to content

Commit

Permalink
Update language.dm
Browse files Browse the repository at this point in the history
  • Loading branch information
Samirakis committed Oct 19, 2024
1 parent 6a329d5 commit 2d3cbe2
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions code/modules/mob/language.dm
Original file line number Diff line number Diff line change
Expand Up @@ -257,18 +257,17 @@
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
"кви","квей","квиш","куу","кюан","киэн","ку","кил","лиа","люик","луи",
"рио","сейу","тсой","уль","улур","урр","ур","цу","эль","эо","эу"),

list("аг","вум","вул","вол","гли","зи","заоо","зао","зикс","зуо","зук","зуво", // sublist2
"икс","илл","ис","йук","кву","квум","куум","куо","куа","куак","кул","квол",
"икс","ил","ис","йук","кву","квум","куум","куо","куа","куак","кул","квол",
"кью","кьюа","кэ","кин","кии","кс","ки","киу","кос","лоа","лак","лум","лик",
"лии","ллак","мзикс","мвол","ори","ору","орр","ррум","ру","руум","руа","рл",
"сэк","су","сиа","тейе","тейку","тсу","туа","туи","ту","тал","уат","уок","урр",
Expand All @@ -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)]"

Expand Down

0 comments on commit 2d3cbe2

Please sign in to comment.