mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-13 03:33:21 +00:00
Initial fixes
Changes interaction between stumps and items.
This commit is contained in:
@@ -41,7 +41,7 @@ This saves us from having to call add_fingerprint() any time something is put in
|
|||||||
/mob/living/carbon/human/proc/has_organ(name)
|
/mob/living/carbon/human/proc/has_organ(name)
|
||||||
var/obj/item/organ/external/O = organs_by_name[name]
|
var/obj/item/organ/external/O = organs_by_name[name]
|
||||||
|
|
||||||
return (O && !(O.status & ORGAN_DESTROYED) )
|
return (O && !(O.status & ORGAN_DESTROYED) && !O.is_stump())
|
||||||
|
|
||||||
/mob/living/carbon/human/proc/has_organ_for_slot(slot)
|
/mob/living/carbon/human/proc/has_organ_for_slot(slot)
|
||||||
switch(slot)
|
switch(slot)
|
||||||
|
|||||||
@@ -14,7 +14,7 @@
|
|||||||
..(holder, internal)
|
..(holder, internal)
|
||||||
if(istype(limb))
|
if(istype(limb))
|
||||||
max_damage = limb.max_damage
|
max_damage = limb.max_damage
|
||||||
if((limb.status & ORGAN_ROBOT) && (!parent || (parent.status & ORGAN_ROBOT)))
|
if((limb.status & ORGAN_ROBOT) && (!parent || (parent.status & ORGAN_ROBOT)))
|
||||||
robotize() //if both limb and the parent are robotic, the stump is robotic too
|
robotize() //if both limb and the parent are robotic, the stump is robotic too
|
||||||
|
|
||||||
/obj/item/organ/external/stump/is_stump()
|
/obj/item/organ/external/stump/is_stump()
|
||||||
@@ -23,3 +23,6 @@
|
|||||||
/obj/item/organ/external/stump/removed()
|
/obj/item/organ/external/stump/removed()
|
||||||
..()
|
..()
|
||||||
qdel(src)
|
qdel(src)
|
||||||
|
|
||||||
|
/obj/item/organ/external/stump/is_usable()
|
||||||
|
return 0
|
||||||
Reference in New Issue
Block a user