Makes antidrop implant release its items regardless which slot theyre in (#29242)

* removed nodrop check, changed anti_drop implant

* anti_drop test

* some touches
This commit is contained in:
Toastical
2025-05-12 23:52:57 +03:00
committed by GitHub
parent 545a5fb8f7
commit 505faec726
4 changed files with 54 additions and 8 deletions
@@ -103,21 +103,21 @@
release_items()
..()
if(L_item)
A = pick(oview(range))
A = pick(oview(range, owner))
L_item.throw_at(A, range, 2)
to_chat(owner, "<span class='notice'>Your left arm spasms and throws [L_item]!</span>")
l_hand_obj = null
if(R_item)
A = pick(oview(range))
A = pick(oview(range, owner))
R_item.throw_at(A, range, 2)
to_chat(owner, "<span class='notice'>Your right arm spasms and throws [R_item]!</span>")
r_hand_obj = null
/obj/item/organ/internal/cyberimp/brain/anti_drop/proc/release_items()
active = FALSE
if(!l_hand_ignore && l_hand_obj && (l_hand_obj == owner.l_hand))
if(!l_hand_ignore && l_hand_obj)
l_hand_obj.flags &= ~NODROP
if(!r_hand_ignore && r_hand_obj && (r_hand_obj == owner.r_hand))
if(!r_hand_ignore && r_hand_obj)
r_hand_obj.flags &= ~NODROP
/obj/item/organ/internal/cyberimp/brain/anti_drop/remove(mob/living/carbon/M, special = 0)