From 2860948406d997d246a9be66302a59605c83ba32 Mon Sep 17 00:00:00 2001 From: Heroman Date: Sun, 3 Jul 2022 18:18:15 +1000 Subject: [PATCH] Adds language preview to character setup --- .../preference_setup/general/02_language.dm | 6 +++++- code/modules/mob/language/generic.dm | 6 +++--- code/modules/mob/language/monkey.dm | 20 +++++++++---------- code/modules/mob/language/station.dm | 12 +++++------ code/modules/mob/language/station_vr.dm | 6 +++--- 5 files changed, 27 insertions(+), 23 deletions(-) diff --git a/code/modules/client/preference_setup/general/02_language.dm b/code/modules/client/preference_setup/general/02_language.dm index 08777970437..4a6bf5810fb 100644 --- a/code/modules/client/preference_setup/general/02_language.dm +++ b/code/modules/client/preference_setup/general/02_language.dm @@ -95,7 +95,11 @@ else var/new_lang = tgui_input_list(user, "Select an additional language", "Character Generation", available_languages) if(new_lang && pref.alternate_languages.len < (S.num_alternate_languages + pref.extra_languages)) - pref.alternate_languages |= new_lang + var/datum/language/chosen_lang = GLOB.all_languages[new_lang] + if(istype(chosen_lang)) + var/choice = tgui_alert(usr, "[chosen_lang.desc]",chosen_lang.name, list("Take","Cancel")) + if(choice != "Cancel" && pref.alternate_languages.len < (S.num_alternate_languages + pref.extra_languages)) + pref.alternate_languages |= new_lang return TOPIC_REFRESH else if(href_list["change_prefix"]) diff --git a/code/modules/mob/language/generic.dm b/code/modules/mob/language/generic.dm index 55ba735af4f..0c2fecfabc9 100644 --- a/code/modules/mob/language/generic.dm +++ b/code/modules/mob/language/generic.dm @@ -18,7 +18,7 @@ // 'basic' language; spoken by default. /datum/language/common name = LANGUAGE_GALCOM - desc = "The common galactic tongue, engineered for cross-species communication." + desc = "The common galactic tongue, engineered for cross-species communication. Every spacer there is knows this!" speech_verb = "says" whisper_verb = "whispers" key = "0" @@ -127,7 +127,7 @@ /datum/language/sign name = LANGUAGE_SIGN - desc = "A sign language commonly used for those who are deaf or mute." + desc = "A sign language commonly used for those who are deaf or mute. Especially popular with spacers, due to practicality in airless environments." signlang_verb = list("gestures") colour = "say_quote" key = "s" @@ -152,7 +152,7 @@ // Silly language for those times when you try to talk a languague you normally can't /datum/language/gibberish name = LANGUAGE_GIBBERISH - desc = "A completely incomprehensible language." + desc = "A completely incomprehensible gibberish that can barely be called a language." signlang_verb = list("flails") speech_verb = "spews" whisper_verb = "mumbles" diff --git a/code/modules/mob/language/monkey.dm b/code/modules/mob/language/monkey.dm index 6736b803fc2..e0755adbbd4 100644 --- a/code/modules/mob/language/monkey.dm +++ b/code/modules/mob/language/monkey.dm @@ -1,6 +1,6 @@ /datum/language/human/monkey name = "Chimpanzee" - desc = "Ook ook ook." + desc = "A collection of ooking noises made by monkeys" speech_verb = "chimpers" ask_verb = "chimpers" exclaim_verb = "screeches" @@ -10,28 +10,28 @@ /datum/language/skrell/monkey name = "Neaera" - desc = "Squik squik squik." + desc = "A collection of squiking noises made by naera." key = "8" - syllables = list("hiss","gronk") + syllables = list("squick","croak") machine_understands = 0 /datum/language/unathi/monkey name = "Stok" - desc = "Hiss hiss hiss." + desc = "A collection of hissing noises made by stok." key = "7" - syllables = list("squick","croak") + syllables = list("hiss","gronk") machine_understands = 0 /datum/language/tajaran/monkey name = "Farwa" - desc = "Meow meow meow." + desc = "A collection of meowing noises made by farwa." key = "9" syllables = list("meow","mew") machine_understands = 0 /datum/language/corgi name = "Dog" - desc = "Woof woof woof." + desc = "A set of barks and woofs that only dogs can understand." speech_verb = "barks" ask_verb = "woofs" exclaim_verb = "howls" @@ -43,7 +43,7 @@ /datum/language/cat name = "Cat" - desc = "Meow meow meow." + desc = "A set of meows and mrowls that only cats can understand." speech_verb = "meows" ask_verb = "mrowls" exclaim_verb = "yowls" @@ -55,7 +55,7 @@ /datum/language/mouse name = "Mouse" - desc = "Squeak squeak. *Nibbles on cheese*" + desc = "A set of squeaks that only mice can understand." speech_verb = "squeaks" ask_verb = "squeaks" exclaim_verb = "squeaks" @@ -67,7 +67,7 @@ /datum/language/bird name = "Bird" - desc = "Chirp chirp, give me food" + desc = "A set of chirps and squawks that only birds can understand." speech_verb = "chirps" ask_verb = "tweets" exclaim_verb = "squawks" diff --git a/code/modules/mob/language/station.dm b/code/modules/mob/language/station.dm index b0de63108c3..cb759eabb58 100644 --- a/code/modules/mob/language/station.dm +++ b/code/modules/mob/language/station.dm @@ -114,7 +114,7 @@ /datum/language/skrell name = LANGUAGE_SKRELLIAN - desc = "A set of warbles and hums, the language itself a complex mesh of both melodic and rhythmic components, exceptionally capable of conveying intent and emotion of the speaker." + desc = "A set of warbles and hums, the language itself a complex mesh of both melodic and rhythmic components, exceptionally capable of conveying intent and emotion of the speaker. Native to Skrell." speech_verb = "warbles" ask_verb = "warbles" exclaim_verb = "sings" @@ -127,7 +127,7 @@ /datum/language/skrellfar name = LANGUAGE_SKRELLIANFAR - desc = "The most common language among the Skrellian Far Kingdoms. Has an even higher than usual concentration of inaudible phonemes." + desc = "The most common language among the Skrellian Far Kingdoms. Has an even higher than usual concentration of inaudible phonemes. Native to Skrell." speech_verb = "warbles" ask_verb = "warbles" exclaim_verb = "sings" @@ -145,7 +145,7 @@ /datum/language/human name = LANGUAGE_SOL_COMMON - desc = "A bastardized hybrid of many languages, including Chinese, English, French, and more; it is the common language of the Sol system." + desc = "A bastardized hybrid of many human languages, including Chinese, English, French, and more; it is the common language of the Sol system." speech_verb = "says" whisper_verb = "whispers" colour = "solcom" @@ -172,7 +172,7 @@ /datum/language/machine name = LANGUAGE_EAL - desc = "An efficient language of encoded tones developed by positronics." + desc = "An efficient language of encoded tones developed by positronics, although compatible with any synthetic lifeforms." speech_verb = "whistles" ask_verb = "chirps" exclaim_verb = "whistles loudly" @@ -190,7 +190,7 @@ /datum/language/teshari name = LANGUAGE_SCHECHI - desc = "A trilling language spoken by the diminutive Teshari." + desc = "A trilling language spoken by the Teshari." speech_verb = "chirps" ask_verb = "chirrups" exclaim_verb = "trills" @@ -222,7 +222,7 @@ /datum/language/promethean name = LANGUAGE_PROMETHEAN - desc = "A complex language composed of guttural noises and bioluminescent signals" + desc = "A complex language of prometheans, composed of guttural noises and bioluminescent signals." signlang_verb = list("flickers","flashes","rapidly flashes a light","quickly flickers a light") speech_verb = "gurgles" ask_verb = "gurgles" diff --git a/code/modules/mob/language/station_vr.dm b/code/modules/mob/language/station_vr.dm index 99917319502..97d094d85c0 100644 --- a/code/modules/mob/language/station_vr.dm +++ b/code/modules/mob/language/station_vr.dm @@ -11,7 +11,7 @@ /datum/language/birdsong name = LANGUAGE_BIRDSONG - desc = "A language primarily spoken by Narvians" + desc = "A tweety language primarily spoken by Nevreans." speech_verb = "chirps" colour = "birdsongc" key = "G" @@ -151,7 +151,7 @@ /datum/language/tavan name = LANGUAGE_TAVAN - desc = "A language native to the Altevians, it has been adopted by other rodent faring species over time." + desc = "A language native to the rat-like Altevians, it has been adopted by other rodent faring species over time." key = "E" speech_verb = "squeaks" whisper_verb = "squiks" @@ -162,7 +162,7 @@ /datum/language/echosong name = LANGUAGE_ECHOSONG - desc = "An ultrasound-based language, inaudible to those unable to understand it." + desc = "An ultrasound-based language, inaudible to those unable to understand it, spoken by few species capable of actually hearing it." key = "U" signlang_verb = list("opens their mouth soundlessly", "mouthes something silently") signlang_verb_understood = list("squeaks")