mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 10:43:20 +00:00
[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:
committed by
GitHub
parent
d5ad2ec343
commit
3cea069905
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user