Skip to content

Commit

Permalink
Merge pull request #141 from MortoSasye/hearthkin-name-gen
Browse files Browse the repository at this point in the history
Hearthkin Random Name Gen
  • Loading branch information
carpotoxin authored Oct 13, 2024
2 parents 7e72abd + 6b4971b commit f4318f9
Show file tree
Hide file tree
Showing 8 changed files with 309 additions and 2 deletions.
5 changes: 5 additions & 0 deletions code/_globalvars/lists/names.dm
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,11 @@ GLOBAL_LIST_INIT(guardian_fantasy_surnames, world.file2list("strings/names/guard
GLOBAL_LIST_INIT(operative_aliases, world.file2list("strings/names/operative_alias.txt"))
GLOBAL_LIST_INIT(voidwalker_names, world.file2list("strings/names/voidwalker.txt"))
GLOBAL_LIST_INIT(ramatan_last, world.file2list("strings/names/ramatan_last.txt")) //DOPPLER EDIT ADDITION
GLOBAL_LIST_INIT(hearthkin_names_female, world.file2list("strings/names/hearthkin_female.txt")) //DOPPLER EDIT ADDITION
GLOBAL_LIST_INIT(hearthkin_names_male, world.file2list("strings/names/hearthkin_male.txt")) //DOPPLER EDIT ADDITION
GLOBAL_LIST_INIT(hearthkin_names_neutral, world.file2list("strings/names/hearthkin_neutral.txt")) //DOPPLER EDIT ADDITION
GLOBAL_LIST_INIT(hearthkin_names_surname, world.file2list("strings/names/hearthkin_surname.txt")) //DOPPLER EDIT ADDITION
GLOBAL_LIST_INIT(hearthkin_names_title, world.file2list("strings/names/hearthkin_title.txt")) //DOPPLER EDIT ADDITION

GLOBAL_LIST_INIT(verbs, world.file2list("strings/names/verbs.txt"))
GLOBAL_LIST_INIT(ing_verbs, world.file2list("strings/names/ing_verbs.txt"))
Expand Down
24 changes: 24 additions & 0 deletions modular_doppler/hearthkin/primitive_genemod/code/language.dm
Original file line number Diff line number Diff line change
Expand Up @@ -16,3 +16,27 @@
icon = 'modular_doppler/hearthkin/primitive_genemod/icons/language_icon.dmi'
default_priority = 94
secret = TRUE

/datum/language/primitive_genemod/get_random_name(
gender = NEUTER,
name_count = default_name_count,
syllable_min = default_name_syllable_min,
syllable_max = default_name_syllable_max,
force_use_syllables = FALSE,
)
if(force_use_syllables)
return ..()

if(gender == FEMALE)
return "[pick(GLOB.hearthkin_names_female)][random_name_spacer][pick_lastname()]"
if(gender == MALE)
return "[pick(GLOB.hearthkin_names_male)][random_name_spacer][pick_lastname()]"
if(gender == NEUTER || gender == PLURAL)
return "[pick(GLOB.hearthkin_names_neutral)][random_name_spacer][pick_lastname()]"

/proc/pick_lastname()
var/surname = pick(TRUE,FALSE)
if(surname)
return pick(GLOB.hearthkin_names_surname)
else
return pick(GLOB.hearthkin_names_title)
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@
/datum/language_holder/primitive_genemod
understood_languages = list(
/datum/language/primitive_genemod = list(LANGUAGE_ATOM),
/datum/language/uncommon = list(LANGUAGE_ATOM),
)
spoken_languages = list(
/datum/language/primitive_genemod = list(LANGUAGE_ATOM),
/datum/language/uncommon = list(LANGUAGE_ATOM),
)
selected_language = /datum/language/primitive_genemod

Expand Down
50 changes: 50 additions & 0 deletions strings/names/hearthkin_female.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Alma
Ása
Ásdís
Auður
Bergdís
Björg
Bryndís
Dagbjört
Dagný
Edda
Elísabet
Elva
Embla
Erla
Eygló
Fanney
Freyja
Gríma
Guðbjörg
Guðrún
Hanna
Harpa
Heiðdís
Heiðrún
Helga
Hildur
Hólmfríður
Ingibjörg
Íris
Jóhanna
Jóna
Kamilla
Karítas
Katrín
Kristín
Laufey
Lilja
Margrét
Mjöll
Ragnheiður
Rán
Sigríður
Sigurbjörg
Sigurlaug
Snædís
Sóley
Steinunn
Tinna
Unnur
Vigdís
50 changes: 50 additions & 0 deletions strings/names/hearthkin_male.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Arnar
Árni
Baldur
Bjarni
Björn
Brynjar
Dagur
Daníel
Einar
Elmar
Emil
Eyjólfur
Finnur
Freyr
Geir
Gísli
Guðjón
Guðmundur
Gunnar
Halldór
Haukur
Heiðar
Helgi
Hjörleifur
Hrafn
Ingimar
Ingólfur
Ísak
Jón
Jóhann
Jóhannes
Kári
Karl
Kristján
Leifur
Magnús
Ólafur
Orri
Pétur
Ragnar
Reynir
Ríkharður
Sigmundur
Sigurður
Snorri
Stefán
Sturla
Sveinn
Þór
Þorsteinn
50 changes: 50 additions & 0 deletions strings/names/hearthkin_neutral.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Addi
Áki
Álfur
Andri
Ari
Atli
Ás
Ásrún
Birki
Bjarki
Bylgja
Daði
Daní
Dímon
Eiður
Elva
Embla
Eydís
Funi
Gauti
Gnýr
Hrafn
Ímir
Ingi
Ísleif
Jökull
Kári
Kolur
Laugi
Leif
Lind
Logi
Lóa
Magn
Máni
Mímir
Nói
Orri
Reynir
Saga
Sindri
Snæ
Styrmir
Svanur
Sól
Úlfrún
Vaka
Víðir
Ymir
80 changes: 80 additions & 0 deletions strings/names/hearthkin_surname.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
Árnason
Árnadóttir
Baldvinsson
Baldvinsdóttir
Benediktsson
Benediktsdóttir
Bjarnason
Bjarnadóttir
Björnsson
Björnsdóttir
Brynjarsson
Brynjarsdóttir
Daníelsson
Daníelsdóttir
Einarsson
Einarsdóttir
Elíasson
Elíasdóttir
Emilsson
Emilsdóttir
Friðriksson
Friðriksdóttir
Gíslason
Gísladóttir
Guðjónsson
Guðjónsdóttir
Guðmundsson
Guðmundsdóttir
Gunnarsson
Gunnarsdóttir
Halldórsson
Halldórsdóttir
Haukursson
Hauksdóttir
Heiðarsson
Heiðarsdóttir
Helgason
Helgadóttir
Hrafnsson
Hrafnsdóttir
Ingvarsson
Ingvarsdóttir
Jóhannsson
Jóhannsdóttir
Jónsson
Jónsdóttir
Jósefsson
Jósefsdóttir
Karlsson
Karlsdóttir
Kristjánsson
Kristjánsdóttir
Leifsson
Leifsdóttir
Magnússon
Magnúsdóttir
Ólafsson
Ólafsdóttir
Ormarsson
Ormarsdóttir
Pálsson
Pálsdóttir
Ragnarsdóttir
Ragnarsson
Reynirsson
Reynisdóttir
Sigurðsson
Sigurðsdóttir
Snorrason
Snorradóttir
Stefánsson
Stefánsdóttir
Sveinsson
Sveinsdóttir
Þórarinsson
Þórarinsdóttir
Þórðsson
Þórðsdóttir
Þorsteinsson
Þorsteinsdóttir
50 changes: 50 additions & 0 deletions strings/names/hearthkin_title.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
Arrow-Slinger
Battle-Hardened
Beast-Tamer
Blade-Dancer
Blood-Seeker
Boulder-Lifter
Breeze-Rider
Cave-Dweller
Cloud-Watcher
Dawn-Chaser
Deep-Diver
Drake-Slayer
Dream-Weaver
Ember-Keeper
Falcon-Eyed
Flame-Bearer
Forest-Whisperer
Frost-Walker
Gale-Bringer
Gold-Finder
Hammer-Holder
Hawk-Follower
Heart-Guard
Ice-Mender
Iron-Willed
Jewel-Searcher
Key-Master
Lake-Protector
Light-Bringer
Lion-Hearted
Moon-Singer
Mountain-Shaker
Night-Caller
Ocean-Ruler
Peace-Keeper
Quick-Striker
River-Crosser
Rock-Smasher
Shadow-Lurker
Sky-Guardian
Song-Wielder
Star-Seeker
Storm-Breaker
Thunder-Clasher
Tree-Climber
Truth-Speaker
Wave-Rider
Wind-Runner
Wolf-Friend
World-Builder

0 comments on commit f4318f9

Please sign in to comment.