Disabled legs trait (#17271)

* spine disability trait

* scanner shows it too, dna injector

* proper path

* synths don't count

---------

Co-authored-by: Willburd <7099514+Willburd@users.noreply.github.com>
This commit is contained in:
Cameron Lennox
2025-03-09 15:04:42 -04:00
committed by GitHub
parent ff10293878
commit ac9d664953
9 changed files with 43 additions and 4 deletions
+15
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"