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:
Alan
2026-08-12 23:25:21 +00:00
committed by GitHub
parent dec7a94d9c
commit c97dfe991f
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -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")
+4 -1
View File
@@ -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