diff --git a/code/modules/organs/pain.dm b/code/modules/organs/pain.dm index 3452b0795f9..7919381c0f7 100644 --- a/code/modules/organs/pain.dm +++ b/code/modules/organs/pain.dm @@ -56,7 +56,12 @@ mob/living/carbon/human/proc/custom_pain(var/message, var/flash_strength) var/msg = "\red [message]" if(flash_strength >= 1) msg = "\red [message]" - src << msg + + // Anti message spam checks + if(msg && ((msg != last_pain_message) || (world.time >= next_pain_time))) + last_pain_message = msg + src << msg + next_pain_time = world.time + 100 mob/living/carbon/human/proc/handle_pain() // not when sleeping @@ -101,7 +106,10 @@ mob/living/carbon/human/proc/handle_pain() if(11 to 15) toxMessageProb = 2 toxDamageMessage = "Your whole body hurts." - if(91 to 10000) + if(15 to 25) + toxMessageProb = 3 + toxDamageMessage = "Your whole body hurts badly." + if(26 to INFINITY) toxMessageProb = 5 toxDamageMessage = "Your body aches all over, it's driving you mad."