It's a feature now - makes it plausible to use custom say verbs in place of emotes (allows proper non-buggy emotes over radio) (#7378)

* it's a feature now - makes it plausible to use custom say verbs in place of emotes

* Makes the thing actually drop the , ""
This commit is contained in:
deathride58
2018-07-20 06:41:12 -04:00
committed by kevinz000
parent ae2cd49de0
commit 6cef81d979
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -95,7 +95,7 @@ GLOBAL_LIST_INIT(freqtospan, list(
spans |= SPAN_YELL
var/spanned = attach_spans(input, spans)
return "[say_mod(input, message_mode)], \"[spanned]\""
return "[say_mod(input, message_mode)][spanned ? ", \"[spanned]\"" : ""]"
/atom/movable/proc/lang_treat(atom/movable/speaker, datum/language/language, raw_message, list/spans, message_mode)
if(has_language(language))
+4 -1
View File
@@ -11,7 +11,10 @@
var/customsayverb = findtext(input, "*")
if(customsayverb)
input = capitalize(copytext(input, customsayverb+1))
return "[message_spans_start(spans)][input]</span>"
if(input)
return "[message_spans_start(spans)][input]</span>"
else
return
/mob/living/compose_message(atom/movable/speaker, datum/language/message_language, raw_message, radio_freq, list/spans, message_mode, face_name = FALSE)
. = ..()