mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-26 13:37:58 +01:00
Adds an icon for non-abstract nodrop items (#29452)
This commit is contained in:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user