You no longer hit IPC on help intent if they are missing a limb (#25703)

* dont hit IPC

* cable coils too
This commit is contained in:
HMBGERDO
2024-06-06 20:56:54 +02:00
committed by GitHub
parent 37ffe943e4
commit 40001df104
2 changed files with 7 additions and 0 deletions
@@ -93,6 +93,9 @@ emp_act
return
var/obj/item/organ/external/S = bodyparts_by_name[user.zone_selected]
if(!S)
if(ismachineperson(src))
to_chat(user, "<span class='notice'>[p_they(TRUE)] [p_are()] missing that limb!</span>")
return TRUE
return
if(!S.is_robotic() || S.open == ORGAN_SYNTHETIC_OPEN)
return
+4
View File
@@ -83,6 +83,10 @@ GLOBAL_LIST_INIT(cable_coil_recipes, list (new/datum/stack_recipe/cable_restrain
var/mob/living/carbon/human/H = M
var/obj/item/organ/external/S = H.bodyparts_by_name[user.zone_selected]
if(!S && ismachineperson(M) && user.a_intent == INTENT_HELP)
to_chat(user, "<span class='notice'>[M.p_they(TRUE)] [M.p_are()] missing that limb!</span>")
return
if(!S?.is_robotic() || user.a_intent != INTENT_HELP || S.open == ORGAN_SYNTHETIC_OPEN)
return ..()
if(S.burn_dam > ROBOLIMB_SELF_REPAIR_CAP)