Adds a couple mood events (#49918)

* bang!

* Dr. Joseph-Ignace *********
This commit is contained in:
wesoda25
2020-03-14 01:58:18 +01:00
committed by GitHub
parent 0e0d936c2e
commit a34e81d426
4 changed files with 19 additions and 1 deletions
@@ -44,3 +44,9 @@
to_chat(buckled_mob, "<span class='userdanger'>You feel a deep shock course through your body!</span>")
addtimer(CALLBACK(buckled_mob, /mob/living.proc/electrocute_act, 85, src, 1), 1)
visible_message("<span class='danger'>The electric chair went off!</span>", "<span class='hear'>You hear a deep sharp shock!</span>")
/obj/structure/chair/e_chair/post_buckle_mob(mob/living/L)
SEND_SIGNAL(L, COMSIG_ADD_MOOD_EVENT, "dying", /datum/mood_event/deaths_door)
/obj/structure/chair/e_chair/post_unbuckle_mob(mob/living/L)
SEND_SIGNAL(L, COMSIG_CLEAR_MOOD_EVENT, "dying")
@@ -208,6 +208,7 @@
if (!istype(M, /mob/living/carbon/human))
return
SEND_SIGNAL(M, COMSIG_ADD_MOOD_EVENT, "dying", /datum/mood_event/deaths_door)
var/mob/living/carbon/human/H = M
if (H.dna)
@@ -232,6 +233,7 @@
M.regenerate_icons()
M.pixel_y -= -GUILLOTINE_HEAD_OFFSET // Move their body back
M.layer -= GUILLOTINE_LAYER_DIFF
SEND_SIGNAL(M, COMSIG_CLEAR_MOOD_EVENT, "dying")
..()
/obj/structure/guillotine/can_be_unfasten_wrench(mob/user, silent)