Changes how stuttering is handled (#4855)

Being hurt or wounded will now triggger the traditional stuttering, while non wounded mobs, mostly under the influence of the disability, will use the new stuttering.
This commit is contained in:
Alberyk
2018-06-14 20:22:47 -03:00
committed by Werner
parent 0238893f18
commit b601c6bedd
2 changed files with 15 additions and 1 deletions

View File

@@ -83,6 +83,15 @@ proc/get_radio_key_from_channel(var/channel)
if(!istype(dongle)) return
if(dongle.translate_binary) return 1
/mob/living/proc/get_stuttered_message(message)
return stutter(message)
/mob/living/carbon/get_stuttered_message(message)
if (shock_stage >= 30)
return stutter(message)
else
return NewStutter(message)
/mob/living/proc/get_default_language()
return default_language
@@ -101,7 +110,7 @@ proc/get_radio_key_from_channel(var/channel)
verb = pick("slobbers","slurs")
speech_problem_flag = 1
if(stuttering)
message = stutter(message)
message = get_stuttered_message(message)
verb = pick("stammers","stutters")
speech_problem_flag = 1
if(tarded)