Skip to content

Commit

Permalink
[MIRROR] Alerts surgeons when an organ is decaying
Browse files Browse the repository at this point in the history
  • Loading branch information
TheNightingale authored and SuhEugene committed Nov 13, 2023
1 parent 285dc00 commit 1041d79
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/modules/surgery/organs_internal.dm
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
if(I && I.damage > 0 && !BP_IS_ROBOTIC(I) && (!(I.status & ORGAN_DEAD) || I.can_recover()) && (I.surface_accessible || affected.how_open() >= (affected.encased ? SURGERY_ENCASED : SURGERY_RETRACTED)))
user.visible_message("[user] starts treating damage to [target]'s [I.name] with [tool_name].", \
"You start treating damage to [target]'s [I.name] with [tool_name]." )
else if(I && !(I.status & ORGAN_CUT_AWAY) && (I.status & ORGAN_DEAD) && I.parent_organ == affected.organ_tag && !BP_IS_ROBOTIC(I))
if (!I.can_recover())
to_chat(user, SPAN_WARNING("\The [target]'s [I.name] is fully necrotic; [tool_name] won't help here."))
else
to_chat(user, SPAN_WARNING("\The [target]'s [I.name] is decaying; you'll need more than just [tool_name] here."))
target.custom_pain("The pain in your [affected.name] is living hell!",100,affecting = affected)
playsound(target.loc, 'sound/items/bonegel.ogg', 50, TRUE)
..()
Expand Down

0 comments on commit 1041d79

Please sign in to comment.