mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Fix skipping language keys in favor of partial radio keys. (#32353)
* Fix skipping language keys in favor of partial radio keys. * Give drone language a functional key. * Remove admin message.
This commit is contained in:
@@ -673,7 +673,7 @@
|
||||
speech_verb = "states"
|
||||
ask_verb = "queries"
|
||||
exclaim_verbs = list("declares")
|
||||
key = "]"
|
||||
key = "|"
|
||||
flags = RESTRICTED | NOLIBRARIAN
|
||||
follow = TRUE
|
||||
syllables = list ("beep", "boop")
|
||||
|
||||
@@ -142,7 +142,10 @@
|
||||
return standard_mode
|
||||
|
||||
if(length(message) >= 2)
|
||||
var/channel_prefix = copytext_char(message, 1, 3)
|
||||
var/channel_prefix = trim_right(copytext_char(message, 1, 4))
|
||||
var/datum/language/L = GLOB.language_keys[channel_prefix]
|
||||
if(L != null && can_speak_language(L))
|
||||
return null // Deconflict your language/radio keys if this causes problems.
|
||||
return GLOB.department_radio_keys[channel_prefix]
|
||||
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user