mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-21 19:19:12 +01:00
Completes customizable language keys, now with savings
This commit is contained in:
@@ -161,6 +161,11 @@ Please do not abuse this ability.
|
||||
if(chosen_language)
|
||||
if(is_lang_whitelisted(prey,chosen_language) || (new_character.species && (chosen_language.name in new_character.species.secondary_langs)))
|
||||
new_character.add_language(lang)
|
||||
for(var/key in prey.prefs.language_custom_keys)
|
||||
if(prey.prefs.language_custom_keys[key])
|
||||
var/datum/language/keylang = GLOB.all_languages[prey.prefs.language_custom_keys[key]]
|
||||
if(keylang)
|
||||
new_character.language_keys[key] = keylang
|
||||
|
||||
new_character.regenerate_icons()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user