mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 02:09:41 +00:00
* Consolidates copypasta for repairing robolimbs Also prevents self-repairing a limb you are using to hold the tool * Fixes robot organs becoming undamagable after reaching cap * Fixes repairing with cable not using any cable, repairing with weldingtool not doing eyecheck * Removes ORGAN_ROBOT and ORGAN_ASSISTED flags, fixes #13123 * Fixes damage to robotic limbs not triggering organ processing At the same time, robotic limbs with damage don't need to process. However, it's much safer to explicitly have robot limbs return 0 from needs_process() instead of not rechecking bad external organs. * Build on HarpyEagle changes to apply to Polaris Had to apply the change from flag to an enumeration. * Removes unneeded file * Fix bruisepacks, remove heart Well, the unused bay version of the heart anyway * Tweaks examine, reverts isSynthetic Reverted that because Bay doesn't use it the same way. Also changed Examine to not list every robo-limb on non-FBPs in red, but left them listed as normal per Spookerton
29 lines
800 B
Plaintext
29 lines
800 B
Plaintext
/obj/item/organ/external/stump
|
|
name = "limb stump"
|
|
icon_name = ""
|
|
dislocated = -1
|
|
|
|
/obj/item/organ/external/stump/New(var/mob/living/carbon/holder, var/internal, var/obj/item/organ/external/limb)
|
|
if(istype(limb))
|
|
organ_tag = limb.organ_tag
|
|
body_part = limb.body_part
|
|
amputation_point = limb.amputation_point
|
|
joint = limb.joint
|
|
parent_organ = limb.parent_organ
|
|
wounds = limb.wounds
|
|
..(holder, internal)
|
|
if(istype(limb))
|
|
max_damage = limb.max_damage
|
|
if((limb.robotic >= ORGAN_ROBOT) && (!parent || (parent.robotic >= ORGAN_ROBOT)))
|
|
robotize() //if both limb and the parent are robotic, the stump is robotic too
|
|
|
|
/obj/item/organ/external/stump/is_stump()
|
|
return 1
|
|
|
|
/obj/item/organ/external/stump/removed()
|
|
..()
|
|
qdel(src)
|
|
|
|
/obj/item/organ/external/stump/is_usable()
|
|
return 0
|