mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-23 05:00:55 +01:00
Station trait "Bot language malfunction" triggers on newly created station bots (#70278)
* Bot language malfunction triggers on new bots * List
This commit is contained in:
@@ -183,6 +183,18 @@ Key procs
|
||||
/datum/language_holder/proc/get_random_spoken_language()
|
||||
return pick(spoken_languages)
|
||||
|
||||
/// Gets a random spoken language, trying to get a non-common language.
|
||||
/datum/language_holder/proc/get_random_spoken_uncommon_language()
|
||||
var/list/languages_minus_common = assoc_to_keys(spoken_languages) - /datum/language/common
|
||||
|
||||
// They have a language other than common
|
||||
if(length(languages_minus_common))
|
||||
return pick(languages_minus_common)
|
||||
|
||||
// They can only speak common, oh well.
|
||||
else
|
||||
return /datum/language/common
|
||||
|
||||
/// Opens a language menu reading from the language holder.
|
||||
/datum/language_holder/proc/open_language_menu(mob/user)
|
||||
if(!language_menu)
|
||||
|
||||
Reference in New Issue
Block a user