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

This commit is contained in:
LemonInTheDark
2021-10-09 04:29:33 -07:00
committed by GitHub
parent 861bf808bc
commit e663308b0d
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