Adds an icon for non-abstract nodrop items (#29452)

This commit is contained in:
Contrabang
2025-06-07 13:25:01 +00:00
committed by GitHub
parent 74e1c13e64
commit f9e95a2b1d
35 changed files with 114 additions and 86 deletions
+1 -1
View File
@@ -107,7 +107,7 @@
holder = item
holder.flags |= NODROP
holder.set_nodrop(TRUE, owner)
holder.resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | UNACIDABLE | ACID_PROOF
holder.slot_flags = null
holder.w_class = WEIGHT_CLASS_HUGE
@@ -62,14 +62,14 @@
if(owner.l_hand.flags & NODROP)
l_hand_ignore = TRUE
else
owner.l_hand.flags |= NODROP
owner.l_hand.set_nodrop(TRUE, owner)
l_hand_ignore = FALSE
if(r_hand_obj)
if(owner.r_hand.flags & NODROP)
r_hand_ignore = TRUE
else
owner.r_hand.flags |= NODROP
owner.r_hand.set_nodrop(TRUE, owner)
r_hand_ignore = FALSE
if(!l_hand_obj && !r_hand_obj)
@@ -116,9 +116,9 @@
/obj/item/organ/internal/cyberimp/brain/anti_drop/proc/release_items()
active = FALSE
if(!l_hand_ignore && l_hand_obj)
l_hand_obj.flags &= ~NODROP
l_hand_obj.set_nodrop(FALSE, owner)
if(!r_hand_ignore && r_hand_obj)
r_hand_obj.flags &= ~NODROP
r_hand_obj.set_nodrop(FALSE, owner)
/obj/item/organ/internal/cyberimp/brain/anti_drop/remove(mob/living/carbon/M, special = 0)
if(active)
@@ -210,7 +210,7 @@
/obj/item/organ/external/hand/proc/update_hand_missing()
// we need to come back to this once the hand is actually removed/dead
if(!owner) // Rather not have this trigger on already remove limbs
if(!owner) // Rather not have this trigger on already removed limbs
return
addtimer(CALLBACK(owner, TYPE_PROC_REF(/mob/living/carbon/human, update_hands_hud), 0))