[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
@@ -3,6 +3,7 @@
desc = "Deployable mop."
icon = 'icons/obj/janitor.dmi'
icon_state = "mop"
item_flags = DROPDEL | NOSTRIP
force = 3
anchored = TRUE // Never spawned outside of inventory, should be fine.
throwforce = 1 //Throwing or dropping the item deletes it.
@@ -57,10 +58,6 @@
user.drop_from_inventory(src)
spawn(1) if(!QDELETED(src)) qdel(src)
/obj/item/mop_deploy/dropped(mob/user)
..()
spawn(1) if(!QDELETED(src)) qdel(src)
/obj/item/mop_deploy/process()
if(!creator || loc != creator || !creator.item_is_in_hands(src))
// Tidy up a bit.