From 5db82c289f0294ab0c64b986487165807bb3c031 Mon Sep 17 00:00:00 2001 From: Alexis Date: Mon, 3 Jun 2024 20:14:46 -0400 Subject: [PATCH] Adds a random roman name button --- code/__HELPERS/mobs.dm | 10 + code/_globalvars/lists/names.dm | 3 + code/modules/client/preferences.dm | 6 + code/modules/jobs/job_types/legion.dm | 4 +- .../mob/living/carbon/human/species.dm | 17 + strings/names/firstlegion_female.txt | 116 ++- strings/names/firstlegion_male.txt | 216 +++- strings/names/lastlegion.txt | 981 +++++++++++++++++- 8 files changed, 1336 insertions(+), 17 deletions(-) diff --git a/code/__HELPERS/mobs.dm b/code/__HELPERS/mobs.dm index 4433775af8f..6c013ce7503 100644 --- a/code/__HELPERS/mobs.dm +++ b/code/__HELPERS/mobs.dm @@ -108,6 +108,16 @@ if(!findname(.)) break +/proc/random_unique_legion_name(gender, attempts_to_find_unique_name=10) + for(var/i in 1 to attempts_to_find_unique_name) + if(gender==FEMALE) + . = capitalize(pick(GLOB.first_names_female_legion)) + " " + capitalize(pick(GLOB.last_names_legion)) + else + . = capitalize(pick(GLOB.first_names_male_legion)) + " " + capitalize(pick(GLOB.last_names_legion)) + + if(!findname(.)) + break + /proc/random_unique_lizard_name(gender, attempts_to_find_unique_name=10) for(var/i in 1 to attempts_to_find_unique_name) . = capitalize(lizard_name(gender)) diff --git a/code/_globalvars/lists/names.dm b/code/_globalvars/lists/names.dm index ef52a6ee8f7..bdf01e4b21c 100644 --- a/code/_globalvars/lists/names.dm +++ b/code/_globalvars/lists/names.dm @@ -8,6 +8,9 @@ GLOBAL_LIST_INIT(first_names, world.file2list("strings/names/first.txt")) GLOBAL_LIST_INIT(first_names_male, world.file2list("strings/names/first_male.txt")) GLOBAL_LIST_INIT(first_names_female, world.file2list("strings/names/first_female.txt")) GLOBAL_LIST_INIT(last_names, world.file2list("strings/names/last.txt")) +GLOBAL_LIST_INIT(first_names_male_legion, world.file2list("strings/names/firstlegion_male.txt")) +GLOBAL_LIST_INIT(first_names_female_legion, world.file2list("strings/names/firstlegion_female.txt")) +GLOBAL_LIST_INIT(last_names_legion, world.file2list("strings/names/lastlegion.txt")) GLOBAL_LIST_INIT(lizard_names_male, world.file2list("strings/names/lizard_male.txt")) GLOBAL_LIST_INIT(lizard_names_female, world.file2list("strings/names/lizard_female.txt")) GLOBAL_LIST_INIT(carp_names, world.file2list("strings/names/carp.txt")) diff --git a/code/modules/client/preferences.dm b/code/modules/client/preferences.dm index 779fa1fb50c..0dba99688cc 100644 --- a/code/modules/client/preferences.dm +++ b/code/modules/client/preferences.dm @@ -305,6 +305,7 @@ GLOBAL_LIST_EMPTY(preferences_datums) if(jobban_isbanned(user, "appearance")) dat += "You are banned from using custom names and appearances. You can continue to adjust your characters, but you will be randomised once you join the game.
" dat += "Random Name " + dat += "Random Roman Name " dat += "Always Random Name:[be_random_name ? "Yes" : "No"]
" dat += "Name: " @@ -1341,6 +1342,11 @@ GLOBAL_LIST_EMPTY(preferences_datums) if(isnewplayer(parent.mob)) // Update the player panel with the new name. var/mob/dead/new_player/player_mob = parent.mob player_mob.new_player_panel() + if("romanname") + real_name = pref_species.random_name_legion(gender,1) + if(isnewplayer(parent.mob)) // Update the player panel with the new name. + var/mob/dead/new_player/player_mob = parent.mob + player_mob.new_player_panel() if("age") age = rand(AGE_MIN, AGE_MAX) if("hair") diff --git a/code/modules/jobs/job_types/legion.dm b/code/modules/jobs/job_types/legion.dm index 882cb9551d4..e3330420a2c 100644 --- a/code/modules/jobs/job_types/legion.dm +++ b/code/modules/jobs/job_types/legion.dm @@ -58,7 +58,7 @@ Weapons Lever shotgun, Grease gun, Repeater carbines, Revolvers, simple guns al return if(H.gender == FEMALE) H.gender = MALE - H.real_name = random_unique_name(MALE) + H.real_name = random_unique_legion_name(MALE) H.name = H.real_name if(H.wear_id) var/obj/item/card/id/dogtag/L = H.wear_id @@ -1230,7 +1230,7 @@ Weapons Lever shotgun, Grease gun, Repeater carbines, Revolvers, simple guns al return if(H.gender == MALE) H.gender = FEMALE - H.real_name = random_unique_name(FEMALE) + H.real_name = random_unique_legion_name(FEMALE) H.name = H.real_name if(H.wear_id) var/obj/item/card/id/dogtag/L = H.wear_id diff --git a/code/modules/mob/living/carbon/human/species.dm b/code/modules/mob/living/carbon/human/species.dm index 00b196460f0..b5b006f84db 100644 --- a/code/modules/mob/living/carbon/human/species.dm +++ b/code/modules/mob/living/carbon/human/species.dm @@ -180,6 +180,23 @@ GLOBAL_LIST_EMPTY(roundstart_race_names) return randname +/datum/species/proc/random_name_legion(gender,unique,lastname) + if(unique) + return random_unique_legion_name(gender) + + var/randnameleg + if(gender == MALE) + randnameleg = pick(GLOB.first_names_male_legion) + else + randnameleg = pick(GLOB.first_names_female_legion) + + if(lastname) + randnameleg += " [lastname]" + else + randnameleg += " [pick(GLOB.last_names_legion)]" + + return randnameleg + //Called when cloning, copies some vars that should be kept /datum/species/proc/copy_properties_from(datum/species/old_species) mutant_bodyparts["limbs_id"] = old_species.mutant_bodyparts["limbs_id"] diff --git a/strings/names/firstlegion_female.txt b/strings/names/firstlegion_female.txt index 73f96e83dad..b1790e07a42 100644 --- a/strings/names/firstlegion_female.txt +++ b/strings/names/firstlegion_female.txt @@ -1,8 +1,114 @@ -Agnes -Bellona -Cecilia +Aelia +Aeliana +Aemilia +Aemiliana +Agrippa +Agrippina +Alba +Albana +Albina +Antonia +Antonina +Aquila +Aquilina +Augusta +Augustina +Aurelia +Aureliana +Balbina +Blandina +Caecilia +Caelia +Caelina +Caesonia +Calpurnia +Camilla +Cassia Claudia -Mila +Cloelia +Cornelia +Decima +Domitia +Domitilla +Drusa +Drusilla +Fabia +Fabiana +Fabiola +Fabricia +Fausta +Faustina +Flaminia +Flavia +Flaviana +Floriana +Fulvia +Galla +Germana +Glaucia +Gratiana +Hadriana +Helvia +Herminia +Hilaria +Horatia +Hortensia +Iovita +Iulia +Iuliana +Iunia +Julia +Juliana +Junia +Laelia +Laurentia +Laurentina +Livia +Liviana +Longina +Lucia +Luciana +Lucilia +Lucilla +Lucretia +Marcella +Marcellina +Marcia +Marciana +Mariana +Marina +Martina +Maxima +Maximiliana +Nona +Octavia +Ovidia +Paula +Paulina +Petronia +Pompeia +Pomponia +Porcia +Prisca +Priscilla +Quinta +Quintina +Rufina Sabina +Saturnina +Septima +Severina +Silvina +Tacita +Tatiana +Tertia +Titiana +Tullia Valentina -Vesta \ No newline at end of file +Valeria +Valeriana +Varinia +Verginia +Vibiana +Virginia +Vita diff --git a/strings/names/firstlegion_male.txt b/strings/names/firstlegion_male.txt index b6ef21ffda2..1fe86bdcbba 100644 --- a/strings/names/firstlegion_male.txt +++ b/strings/names/firstlegion_male.txt @@ -1,7 +1,215 @@ -Albertus -Cadmus +Aelianus +Aelius +Aemilianus +Aemilius +Aetius +Africanus +Agrippa +Ahenobarbus +Albanus +Albinus +Albus +Antoninus +Antonius +Appius +Aquila +Aquilinus +Atilius +Augustinus +Augustus +Aulus +Aurelianus +Aurelius +Avilius +Avitus +Balbinus +Balbus +Blandinus +Blandus +Blasius +Brutus +Caecilius +Caelinus +Caelius +Caeso +Caesonius +Caius +Calpurnius +Calvus +Camillus +Caracalla +Cassian +Cassianus +Cassius +Cato +Celsus +Cicero +Claudius +Cloelius +Cnaeus +Cornelius +Crispinus +Crispus +Cyprianus +Decimus +Diadumenianus +Diocletianus +Domitianus +Domitius +Drusus +Duilius +Egnatius +Ennius +Fabianus +Fabius +Fabricius +Faustinus +Faustus Felix +Festus +Flaminius +Flavianus +Flavius +Florianus +Florus +Fulvius +Gaius +Gallus +Germanicus +Germanus +Glaucia +Gnaeus +Gordianus +Gratianus +Hadrianus +Helvius +Herminius +Hilarius +Horatius +Hortensius +Ianuarius +Iovianus +Iovita +Iulianus +Iulius +Iunius +Iuvenalis +Januarius +Jovian Julius +Junius +Laelius +Laurentinus +Laurentius +Lepidus +Livianus +Livius +Longinus +Loukios +Lucanus +Lucianus +Lucilius +Lucius +Lucretius +Lupus +Manius +Manlius +Marcellinus +Marcellus +Marcianus +Marcius Marcus -Pius -Urban \ No newline at end of file +Marianus +Marinus +Marius +Martialis +Martinus +Maxentius +Maximianus +Maximilianus +Maximinus +Maximus +Naevius +Nero +Nerva +Nonus +Octavianus +Octavius +Otho +Ovidius +Paulinus +Paulus +Petronius +Plinius +Pompeius +Pompilius +Pomponius +Pontius +Porcius +Postumus +Priscus +Publius +Quinctilianus +Quinctilius +Quinctius +Quinctus +Quintilianus +Quintilius +Quintillus +Quintinus +Quintius +Quintus +Regulus +Romilius +Rufinus +Rufus +Rusticus +Sabinus +Salvius +Saturninus +Scaevola +Scipio +Secundinus +Secundus +Seneca +Septimius +Septimus +Sergius +Servius +Severianus +Severinus +Severus +Sextilius +Sextus +Silvanus +Silvinus +Spurius +Tacitus +Tarquinius +Tatianus +Tatius +Terentius +Tertius +Thracius +Tiberius +Tiburtius +Titianus +Titus +Traianus +Tullius +Tullus +Ursus +Valens +Valentinianus +Valentinus +Valerianus +Valerius +Varinius +Varius +Vergilius +Verginius +Vespasianus +Vibianus +Vibius +Vinicius +Vitus diff --git a/strings/names/lastlegion.txt b/strings/names/lastlegion.txt index cdb49ed9086..501e89594bf 100644 --- a/strings/names/lastlegion.txt +++ b/strings/names/lastlegion.txt @@ -1,8 +1,977 @@ -Aulus -Candidus -Consus -Falto -Italus +Abronius +Abudius +Aburius +Accius +Accoleius +Acerronius +Acilius +Aconius +Actorius +Acutius +Adginnius +Aebutius +Aedinius +Aelius +Aemilius +Aerelius +Afinius +Afranius +Agnanius +Agorius +Albanius +Albatius +Albinius +Albius +Albinovanus +Albucius +Alburius +Alfenus +Alfius +Allectius +Allienus +Amafinius +Amatius +Amblasius +Ambrosius +Ampius +Amplas +Ampudius +Amusanus +Ancharius +Andius +Anicius +Anisinus +Anisius +Annaeus +Anneius +Annius +Anquirinnius +Antistius +Antius +Antonius +Apisius +Aponius +Appianius +Appius +Appuleius +Apronius +Apustius +Aquillius +Aquinius +Arellius +Arennius +Arminius +Arpineius +Arrecinus +Arrius +Arruntius +Arsinius +Articuleius +Artorius +Arvenius +Arvianius +Asconius +Asellius +Asinius +Asvillius +Ateius +Aternius +Ateronius +Atius +Atilius +Atinius +Atrius +Attius +Atzicius +Auconius +Auctorius +Audasius +Aufeius +Aufidius +Aulius +Aurelius +Aurius +Aurunculeius +Ausonius +Autrodius +Autronius +Avianus +Avidius +Avienus +Avilius +Avius +Axius +Babrius +Baebius +Balonius +Balventius +Bantius +Barbatius +Barrius +Barsius +Bavius +Bellicius +Bellienus +Bellius +Betilienus +Betitius +Betucius +Betuus +Bicleius +Blandius +Blandonius +Blossius +Boionius +Bruttius +Bucculeius +Burbuleius +Burrienus +Butronius +Caecilius +Caecina +Caecius +Caedicius +Caelius +Caeparius +Caepasius +Caerellius +Caesellius +Caesennius +Caesetius +Caesius +Caesonius +Caesulenus +Caetronius +Calavius +Calesterna +Calidius +Calpurnius +Calumeius +Calvenus +Calventius +Calvisius +Camaronius +Campatius +Canidius +Caninius +Canius +Cantilius +Cantius +Canuleius +Canutius +Capienus +Carfulenus +Carisius +Caristanius +Caristicus +Carius +Carpinatius +Carrinas +Carsicius +Carteius +Carvilius +Casperius +Cassius +Castricius +Castrinius +Catabronius +Catienus +Catilius +Catius +Cavinnius +Ceionius +Centenius +Ceppuleius +Cerenius +Cervilius +Cervonius +Cestius +Cicereius +Cilnius +Cincius +Cispius +Classidius +Claudius +Cloelius +Cluentius +Clutorius +Cluvius +Cocceius +Coelius +Cominius +Communius +Concessius +Condetius +Consentius +Considius +Consius +Coponius +Cordius +Corfidius +Cornelius +Cornificius +Coruncanius +Cosconius +Cossinius +Cossutius +Cotius +Cottius +Crassicius +Crastinus +Cremutius +Crepereius +Critonius +Cupiennius +Curiatius +Curius +Cursineius +Curtilius +Curtius +Cusinius +Cuspius +Decidius +Decimius +Decitius +Decius +Decumenus +Dellius +Dercullius +Desticius +Dexius +Didius +Digitius +Dillius +Distubuanus +Domitius +Dubius +Duccius +Duilius +Duratenus +Durmius +Duronius +Ebetius +Eggius +Egilius +Egnatius +Egnatuleius +Egrilius +Elvius +Ennius +Epidius +Eppius +Equitius +Eranius +Erucius +Evasius +Fabius +Fabricius +Fadenus +Fadius +Faenius +Falcidius +Falerius +Faminius +Fannius +Farsuleius +Faucius +Favonius +Festinius +Fidiculanius +Firmius +Flaminius +Flanus +Flavinius +Flavius +Flavoleius +Flavonius +Floridius +Florius +Floronius +Fonteius +Foslius +Fufetius +Fuficius +Fufidius +Fufius +Fulcinius +Fulginas +Fulvius +Fundanius +Furius +Furnius +Gabinius +Gagilius +Galerius +Gallius +Gargonius +Gavius +Geganius +Gellius +Geminius +Genucius +Gessius +Glicius +Granius +Gratidius +Gratius +Haterius +Hedusius +Heius +Helvidius +Helvius +Herennius +Herennuleius +Herminius +Hirrius +Hirtius +Hirtuleius +Hisseius +Horatius +Hordeonius +Hortensius +Hosidius +Hostilius +Hostius +Humidius +Iallius +Iasidius +Iccius +Icilius +Ignius +Ingenius +Insteius +Istacidius +Iteius +Iturius +Janius +Javolenus +Jucundius +Julius +Juncius +Junius +Justinius +Juventius +Laberius +Labienus +Lacerius +Laecanius +Laelius +Laenius +Laetilius +Laetorius +Lafrenius +Lamponius +Laronius +Lartius +Latinius +Lavinius +Lemonius +Lentidius +Lepanius +Lepidius +Levissatius +Libellius +Libertius +Liburnius +Licinius +Ligarius +Limisius +Litrius +Livinius +Livius +Lollius +Longinius +Loreius +Lovesius +Lucceius +Lucienus +Lucilius +Lucius +Lucretius +Lurius +Luscidius +Luscius +Lusius +Lutatius +Maccius +Maccienus +Macrinius +Macrobius +Maecenas +Maecilius +Maecius +Maelius +Maenas +Maenius +Maevius +Magius +Mallius +Mamercius +Mamilius +Manilius +Manlius +Mannaius +Marcius +Marius +Martinius +Matienus +Matinius +Matius +Matrinius +Mattavius +Matuius +Maximius +Memmius +Menenius +Menius +Mercatorius +Mescinius +Messienus +Messius +Mestrius +Metilius +Metonius +Mettius +Milonius +Mimesius +Minatius +Minicius +Minidius +Minius +Minucius +Moderatius +Modius +Mucimeius +Mucius +Multillius +Mummius +Munatius +Munius +Murrius +Mussidius +Mustius +Mutilius +Mutius +Naevius +Nasennius +Nasidienus +Nasidius +Nautius +Neratius +Nercius +Nerfinius +Nerius +Nessinius +Nesulna +Nigidius +Nimmius +Ninnius +Nipius +Nonius +Norbanus +Novellius +Novercinius +Novius Numerius -Orca +Numicius +Numisius +Numitorius +Nummius +Numoleius +Numonius +Nunnuleius +Nymphidius +Obellius +Obultronius +Occius +Oclatinius +Oclatius +Ocratius +Octavenus +Octavius +Ofanius +Ofatulenus +Ofilius +Ogulnius +Ollius +Opellius +Opetreius +Opimius +Opisius +Opiternius +Oppidius +Oppius +Opsidius +Opsilius +Opsius +Oranius +Orbicius +Orbilius +Orbius +Orchius +Orcivius +Orfidius +Orfius +Orgius +Orosius +Oscius +Ostorius +Otacilius +Ovidius +Ovinius +Paccius +Paciaecus +Pacidius +Pacilius +Paconius +Pactumeius +Pacuvius +Paldius +Palfurius +Palpellius +Pantuleius +Papinius +Papirius +Papius +Pascellius +Pasidienus +Pasidius +Passienus +Patulcius +Pedanius +Pedius +Peducaeus +Peltrasius +Percennius +Perperna +Persius +Pescennius +Petillius +Petreius +Petronius +Petrosidius +Pidius +Pilius +Pinarius +Pinnius +Pisentius +Pitisedius +Placidius +Plaetorius +Plaguleius +Plancius +Plarius +Plautius +Pleminius +Plinius +Ploticius +Pluticius +Poetelius +Pollius +Pompeius +Pompilius +Pomponius +Pomptinus +Pompuledius +Pontidius +Pontificius +Pontilienus +Pontilius +Pontius +Popaedius +Popidius +Poppaeus +Porcius +Porsina +Postumius +Postumulenus +Potitius +Praecilius +Praeconius +Prastinius +Precius +Priscius +Procilius +Proculeius +Propertius +Publicius +Puccasius +Publilius +Pulfidius +Pulfionius +Pupius +Pusonius +Quartienus +Quartinius +Quartius +Queresius +Quinctilius +Quinctius +Quinquaius +Quintinius +Quirinius +Rabirius +Rabonius +Rabuleius +Racectius +Racilius +Raecius +Ragonius +Rammius +Ranius +Rasinius +Reconius +Reginius +Remmius +Rennius +Resius +Ricinius +Romanius +Romilius +Roscius +Rubellius +Rubrenus +Rubrius +Rufinius +Rufius +Rufrius +Rullius +Rupilius +Rusonius +Rusticelius +Rustius +Rutilius +Sabellius +Sabidius +Sabinius +Sabucius +Saenius +Saevonius +Safinius +Sagarius +Salienus +Sallustius +Salonius +Saltius +Saltorius +Salvidienus +Salvidius +Salvius +Salvienus +Samacius +Samientus +Sammius +Sanquinius +Sariolenus +Sarius +Sarrenius +Satellius +Satrienus +Satrius +Sattius +Saturius +Saturninius +Saufeius +Scaevilius +Scaevinius +Scaevius +Scalacius +Scandilius +Scantinius +Scantius +Scaptius +Scatidius +Scetanus +Scoedius +Scribonius +Scuilius +Scutarius +Seccius +Secundinius +Secundius +Sedatius +Segulius +Seius +Selicius +Sellius +Sempronius +Sennius +Sentius +Seppienus +Seppius +Sepstinius +Septicius +Septimius +Septimuleius +Septueius +Sepullius +Sepunius +Sergius +Serius +Sertorius +Servaeus +Servenius +Servilius Servius +Sestius +Severius +Sextilius +Sextius +Sibidienus +Sicinius +Silicius +Silius +Silvius +Simplicius +Simplicinius +Sinicius +Sinnius +Sinuleius +Sisenna +Sittius +Socellius +Sollius +Sornatius +Sosius +Sotidius +Spedioleius +Spedius +Spellius +Splattius +Spurilius +Spurinna +Spurius +Staberius +Staius +Stallius +Statilius +Statinius +Statioleius +Statius +Statorius +Statrius +Steius +Stellius +Stenius +Stertinius +Stlabillenus +Stlaccius +Stlammius +Stlarius +Strabonius +Subrius +Successius +Suedius +Suellius +Suetonius +Suettius +Suilius +Suillius +Sulpicius +Summianius +Surdinius +Tadius +Talepius +Talius +Tampius +Tanicius +Tannonius +Tanusius +Tapsenna +Tariolenus +Taronius +Tarpeius +Tarquinius +Tarquitius +Tarrutenius +Tarutius +Tatius +Tattius +Taurius +Tebanus +Tecusenus +Tedisenus +Teditius +Tedius +Teiustius +Terefrius +Terrasidius +Terentilius +Terentius +Tertinius +Tertius +Tesitanus +Tetricius +Tetrinius +Tettidius +Tettienus +Tettius +Thoranius +Thorius +Tiburtius +Ticinius +Tifernius +Tigellius +Tigidius +Tilioficiosus +Tillius +Tineius +Titanius +Titedius +Titinius +Titioleius +Titius +Tittidienus +Tittienus +Tittius +Titucius +Tituculenus +Titulenus +Titurius +Titurnius +Togonius +Traius +Tranquillius +Traulus +Trausius +Travinius +Travius +Trebanius +Trebatius +Trebellienus +Trebellius +Trebicius +Trebius +Trebulanus +Trebonius +Tremellius +Triarius +Triccius +Trisimpedius +Tritius +Truttedius +Tuccius +Tudicius +Tullius +Turallasius +Turciacus +Turcilius +Turbonius +Turcius +Turionius +Turius +Turpilius +Turranius +Turselius +Tursidius +Turullius +Tuscenius +Tuscilius +Tussanius +Tussidius +Tuticanus +Tuticius +Tutilius +Tutinius +Tutius +Tutorius +Ulentinius +Ulpius +Umberius +Umbilius +Umbirius +Umboleius +Umbonius +Umbrenus +Umbricius +Umbrius +Umbrilius +Umerius +Ummidius +Urbanius +Urbicius +Urbinius +Urgulanius +Urinaeus +Urseius +Urvinius +Ussinus +Utilius +Uttiedius +Valerius +Valentius +Valgius +Varenus +Varinius +Varisidius +Varius +Varrotius +Varveratius +Vasius +Vatinius +Vecilius +Vedius +Vedodius +Vegetius +Velanius +Velius +Velleius +Vemnasius +Ventidius +Venuleius +Vequasius +Veranius +Verbisius +Verecundius +Vergilius +Verginius +Verres +Verrius +Vesiculanus +Vesnius +Vesonius +Vespasius +Vestius +Vestorius +Vestricius +Vestrius +Vetilius +Vettius +Veturius +Vibenius +Vibidius +Vibius +Vibulliacus +Vibullius +Vicirius +Victorinius +Victorius +Victricius +Viducius +Vigilius +Villius +Vinicius +Vinius +Vipsanius +Vipstanus +Viridius +Virius +Visellius +Vistilius +Vitellius +Vitedius +Vitrasius +Vitruvius +Vivanius +Voconius +Volcacius +Volnius +Volscius +Volturcius +Volumnius +Volusenna +Volusenus +Volusius +Vorenius +Vulius +Vulpius