[MIRROR] Moves destroy_on_drop to TG style and adds signal (#11640)

Co-authored-by: Will <7099514+Willburd@users.noreply.github.com>
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-09-14 05:41:28 -04:00
committed by GitHub
co-authored by Will Cameron Lennox
parent e62583c5c4
commit e97dd3d6e2
17 changed files with 40 additions and 72 deletions
+8 -1
View File
@@ -129,7 +129,6 @@
var/list/warned_of_possession //Checks to see who has been informed this item is possessed.
var/cleaving = FALSE // Used to avoid infinite cleaving.
var/list/tool_qualities
var/destroy_on_drop = FALSE // Used by augments to determine if the item should destroy itself when dropped, or return to its master.
var/obj/item/organ/my_augment = null // Used to reference the object's host organ.
var/datum/identification/identity = null
var/identity_type = /datum/identification
@@ -429,6 +428,14 @@
for(var/datum/action/action_item_has as anything in actions)
action_item_has.Remove(user)
if((item_flags & DROPDEL) && !QDELETED(src))
qdel(src)
SEND_SIGNAL(src, COMSIG_ITEM_DROPPED, user)
if(my_augment && !QDELETED(src))
forceMove(my_augment)
// called just as an item is picked up (loc is not yet changed)
/obj/item/proc/pickup(mob/user)
SEND_SIGNAL(src, COMSIG_ITEM_PICKUP, user)