[MIRROR] Disabled legs trait (#10342)

Co-authored-by: Cameron Lennox <killer65311@gmail.com>
Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-03-09 16:48:49 -07:00
committed by GitHub
parent d5ad2ec343
commit 3cea069905
9 changed files with 43 additions and 4 deletions

View File

@@ -151,6 +151,16 @@
owner.custom_pain("Your [name] burns like it's on fire!",15)
owner.Weaken(5)
/obj/item/organ/external/leg/is_usable() // We only do legs, otherwise the stance_damage will be 8 instead of 4, meaning crutches do nothing as they only negate 4
if(robotic == ORGAN_FLESH && owner.sdisabilities & SPINE)
return FALSE
. = ..()
/obj/item/organ/external/leg/organ_can_feel_pain()
if(robotic < ORGAN_ROBOT && owner.sdisabilities & SPINE)
return FALSE
. = ..()
/obj/item/organ/external/leg/right
organ_tag = BP_R_LEG
name = "right leg"
@@ -194,6 +204,11 @@
owner.custom_pain("Your [name] burns like it's on fire!",15)
owner.Weaken(5)
/obj/item/organ/external/foot/organ_can_feel_pain()
if(robotic < ORGAN_ROBOT && owner.sdisabilities & SPINE)
return FALSE
. = ..()
/obj/item/organ/external/foot/right
organ_tag = BP_R_FOOT
name = "right foot"