mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-18 10:33:30 +01:00
Merge pull request #12748 from SteelSlayer/incision-examine
Adds examine text for people who have open surgical incisions
This commit is contained in:
@@ -215,6 +215,12 @@
|
||||
else if(E.status & ORGAN_SPLINTED)
|
||||
wound_flavor_text["[E.limb_name]"] = "[p_they(TRUE)] [p_have()] a splint on [p_their()] [E.name]!\n"
|
||||
|
||||
if(E.open)
|
||||
if(E.is_robotic())
|
||||
msg += "<b>The maintenance hatch on [p_their()] [ignore_limb_branding(E.limb_name)] is open!</b>\n"
|
||||
else
|
||||
msg += "<b>[p_their(TRUE)] [ignore_limb_branding(E.limb_name)] has an open incision!</b>\n"
|
||||
|
||||
for(var/obj/item/I in E.embedded_objects)
|
||||
msg += "<B>[p_they(TRUE)] [p_have()] \a [bicon(I)] [I] embedded in [p_their()] [E.name]!</B>\n"
|
||||
|
||||
@@ -403,3 +409,29 @@
|
||||
return 0
|
||||
else
|
||||
return 0
|
||||
|
||||
// Ignores robotic limb branding prefixes like "Morpheus Cybernetics"
|
||||
/proc/ignore_limb_branding(limb_name)
|
||||
switch(limb_name)
|
||||
if("chest")
|
||||
. = "upper body"
|
||||
if("groin")
|
||||
. = "lower body"
|
||||
if("head")
|
||||
. = "head"
|
||||
if("l_arm")
|
||||
. = "left arm"
|
||||
if("r_arm")
|
||||
. = "right arm"
|
||||
if("l_leg")
|
||||
. = "left leg"
|
||||
if("r_leg")
|
||||
. = "right leg"
|
||||
if("l_foot")
|
||||
. = "left foot"
|
||||
if("r_foot")
|
||||
. = "right foot"
|
||||
if("l_hand")
|
||||
. = "left hand"
|
||||
if("r_hand")
|
||||
. = "right hand"
|
||||
|
||||
@@ -47,7 +47,7 @@
|
||||
var/damage_msg = "<span class='warning'>You feel an intense pain</span>"
|
||||
var/broken_description
|
||||
|
||||
var/open = 0
|
||||
var/open = 0 // If the body part has an open incision from surgery
|
||||
var/sabotaged = 0 //If a prosthetic limb is emagged, it will detonate when it fails.
|
||||
var/encased // Needs to be opened with a saw to access the organs.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user