death causes mood debuffs and possible jitterness

watching some die is trumatic, and shouldnt be taken lightly. doesnt stack, 20min cool down.
This commit is contained in:
QuoteFox
2021-04-27 19:53:18 +01:00
parent 18a82a905a
commit 5af77b4482
2 changed files with 16 additions and 3 deletions
+10 -2
View File
@@ -7,15 +7,23 @@
if(!gibbed)
emote("deathgasp")
//watching someone die is trumatic...
for(var/mob/living/carbon/human/H in oview(5, src))
if(H.client && (src /= H))
SEND_SIGNAL(H, COMSIG_ADD_MOOD_EVENT, "death", /datum/mood_event/deathsaw)
if(prob(10)) //10% chance to pump adrenaline into their body
H.jitteriness += 5
if(combatmode)
toggle_combat_mode(TRUE, TRUE)
. = ..()
for(var/T in get_traumas())
var/datum/brain_trauma/BT = T
BT.on_death()
if(SSticker.mode)
SSticker.mode.check_win() //Calls the rounds wincheck, mainly for wizard, malf, and changeling now