mirror of
https://github.com/VOREStation/VOREStation.git
synced 2026-08-28 22:48:38 +01:00
return early (#19470)
This commit is contained in:
@@ -150,18 +150,18 @@
|
||||
if(istype(first) && first.speaking == GLOB.all_languages["Noise"])
|
||||
return ..()
|
||||
message_data[1] = ""
|
||||
. = 1
|
||||
return 1
|
||||
|
||||
else if(istype(wear_mask, /obj/item/clothing/mask))
|
||||
if(istype(wear_mask, /obj/item/clothing/mask))
|
||||
var/obj/item/clothing/mask/M = wear_mask
|
||||
if(M.voicechange) //only horsemasks do this.
|
||||
message_data[1] = pick(M.say_messages)
|
||||
message_data[2] = pick(M.say_verbs)
|
||||
if(istype(M, /obj/item/clothing/mask/horsehead) && prob(0.5))
|
||||
message_data[2] = "HIIII EVERYPONY"
|
||||
. = 1
|
||||
return 1
|
||||
|
||||
else if((CE_SPEEDBOOST in chem_effects) || (get_jittery() >= 100 && !stuttering)) // motor mouth, check for stuttering so anxiety doesn't do hyperzine text
|
||||
if((CE_SPEEDBOOST in chem_effects) || (get_jittery() >= 100 && !stuttering)) // motor mouth, check for stuttering so anxiety doesn't do hyperzine text
|
||||
// Despite trying to url/html decode these, byond is just being bad and I dunno.
|
||||
var/static/regex/speedboost_initial = new (@"&[a-z]{2,5};|&#\d{2};","g")
|
||||
// Not herestring because bad vs code syntax highlight panics at apostrophe
|
||||
@@ -169,9 +169,9 @@
|
||||
for(var/datum/multilingual_say_piece/S in message_data[1])
|
||||
S.message = speedboost_initial.Replace(S.message, "")
|
||||
S.message = speedboost_main.Replace(S.message, "")
|
||||
. = 1
|
||||
else
|
||||
. = ..(message_data)
|
||||
return 1
|
||||
|
||||
. = ..(message_data)
|
||||
|
||||
/mob/living/carbon/human/handle_message_mode(message_mode, list/message_pieces, verb, used_radios)
|
||||
switch(message_mode)
|
||||
|
||||
Reference in New Issue
Block a user