From 50e4e471eeed7bf8474505d4fc14a98652451565 Mon Sep 17 00:00:00 2001 From: Casey Date: Tue, 30 Aug 2022 06:51:29 -0400 Subject: [PATCH] Merge pull request #13608 from Very-Soft/micro_structures /objs with mobs in them spit out the mobs before they Destroy() --- code/game/objects/objs.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/game/objects/objs.dm b/code/game/objects/objs.dm index b9e462190a..b9a0f53c7d 100644 --- a/code/game/objects/objs.dm +++ b/code/game/objects/objs.dm @@ -23,6 +23,20 @@ /obj/Destroy() STOP_PROCESSING(SSobj, src) + + //VOREStation Add Start - I really am an idiot why did I make it this way + if(micro_target) + for(var/thing in src.contents) + if(!ismob(thing)) + continue + var/mob/m = thing + if(isbelly(src.loc)) + m.forceMove(src.loc) + else + m.forceMove(get_turf(src.loc)) + m.visible_message("\The [m] tumbles out of \the [src]!") + //VOREStation Add End + return ..() /obj/Topic(href, href_list, var/datum/tgui_state/state = GLOB.tgui_default_state)