mirror of
https://github.com/yogstation13/Yogstation.git
synced 2025-02-26 09:04:50 +00:00
Ports "Give mood buff for defibbing someone" (#14423)
* Update computer.dm * Update meat.dm * Update objects.dm * Update generic_positive_events.dm * Update defib.dm * Update human.dm * Update objects.dm * Update meat.dm * Update computer.dm
This commit is contained in:
@@ -62,7 +62,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 = 5 MINUTES
|
||||
|
||||
@@ -624,6 +624,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)
|
||||
|
||||
@@ -627,7 +627,7 @@
|
||||
return
|
||||
|
||||
src.visible_message("[src] performs CPR on [C.name]!", span_notice("You perform CPR on [C.name]."))
|
||||
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)
|
||||
C.cpr_time = world.time
|
||||
log_combat(src, C, "CPRed")
|
||||
SSachievements.unlock_achievement(/datum/achievement/cpr, client)
|
||||
|
||||
Reference in New Issue
Block a user