Give mood buff for defibbing someone (#52798)

This commit is contained in:
Jared-Fogle
2020-08-11 07:55:46 -07:00
committed by GitHub
parent 32caf4c265
commit 3cf450d564
3 changed files with 3 additions and 2 deletions
@@ -59,7 +59,7 @@
special_screen_obj = "honked_nose"
special_screen_replace = FALSE
/datum/mood_event/perform_cpr
/datum/mood_event/saved_life
description = "<span class='nicegreen'>It feels good to save a life.</span>\n"
mood_change = 6
timeout = 8 MINUTES
+1
View File
@@ -608,6 +608,7 @@
H.emote("gasp")
H.Jitter(100)
SEND_SIGNAL(H, COMSIG_LIVING_MINOR_SHOCK)
SEND_SIGNAL(user, COMSIG_ADD_MOOD_EVENT, "saved_life", /datum/mood_event/saved_life)
log_combat(user, H, "revived", defib)
if(req_defib)
defib.deductcharge(revivecost)
@@ -693,7 +693,7 @@
return FALSE
visible_message("<span class='notice'>[src] performs CPR on [target.name]!</span>", "<span class='notice'>You perform CPR on [target.name].</span>")
SEND_SIGNAL(src, COMSIG_ADD_MOOD_EVENT, "perform_cpr", /datum/mood_event/perform_cpr)
SEND_SIGNAL(src, COMSIG_ADD_MOOD_EVENT, "saved_life", /datum/mood_event/saved_life)
log_combat(src, target, "CPRed")
if (HAS_TRAIT(target, TRAIT_NOBREATH))