mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 12:05:59 +01:00
Give mood buff for defibbing someone (#52798)
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user