Fix: Anti-drop causing permanent nodrop items when dropped item picked up by user. (#22747)

* Item dropped while antidrop active no longer nodrop

* Switched to or instead of XOR

* Combines if statements.

---------

Co-authored-by: Adrer <adrermail@gmail.com>
This commit is contained in:
Adrer
2023-10-12 15:37:23 +01:00
committed by GitHub
co-authored by Adrer
parent 0aa4a097ad
commit 77826a2a01
@@ -110,10 +110,10 @@
/obj/item/organ/internal/cyberimp/brain/anti_drop/proc/release_items()
active = FALSE
if(!l_hand_ignore && (l_hand_obj in owner.contents))
l_hand_obj.flags ^= NODROP
if(!r_hand_ignore && (r_hand_obj in owner.contents))
r_hand_obj.flags ^= NODROP
if(!l_hand_ignore && l_hand_obj && (l_hand_obj == owner.l_hand))
l_hand_obj.flags &= ~NODROP
if(!r_hand_ignore && r_hand_obj && (r_hand_obj == owner.r_hand))
r_hand_obj.flags &= ~NODROP
/obj/item/organ/internal/cyberimp/brain/anti_drop/remove(mob/living/carbon/M, special = 0)
if(active)