[MIRROR] Adds SHOULD_NOT_SLEEP to Destroy. Why didn't we do this before. [MDB IGNORE] (#8714)

* Adds SHOULD_NOT_SLEEP to Destroy. Why didn't we do this before. (#61943)

* Adds SHOULD_NOT_SLEEP to Destroy. Why didn't we do this before.

Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-10-09 15:11:52 +02:00
committed by GitHub
parent d3f9b7720e
commit 95ab2d2efb
11 changed files with 54 additions and 32 deletions
@@ -128,13 +128,13 @@
M.adjustBruteLoss(30)
src.visible_message(span_danger("[M] falls free of [src]!"))
unbuckle_mob(M,force=1)
M.emote("scream")
INVOKE_ASYNC(M, /mob/proc/emote, "scream")
M.AdjustParalyzed(20)
/obj/structure/kitchenspike/Destroy()
if(has_buckled_mobs())
for(var/mob/living/L in buckled_mobs)
release_mob(L)
for(var/mob/living/spiked_lad as anything in buckled_mobs)
release_mob(spiked_lad)
return ..()
/obj/structure/kitchenspike/deconstruct(disassembled = TRUE)
@@ -164,7 +164,7 @@
UnregisterSignal(attached_item, COMSIG_PARENT_QDELETING)
qdel(attached_item)
else if (user)
user.put_in_hands(attached_item)
INVOKE_ASYNC(user, /mob/proc/put_in_hands, attached_item)
else
attached_item.forceMove(drop_location())
if (throwing && !QDELETED(attached_item)) //Fun little thing where we throw out the old attached item when emagged