Merge pull request #13608 from Very-Soft/micro_structures

/objs with mobs in them spit out the mobs before they Destroy()
This commit is contained in:
Casey
2022-08-30 06:51:29 -04:00
committed by CHOMPStation2
parent 865e07111b
commit 50e4e471ee

View File

@@ -23,6 +23,20 @@
/obj/Destroy() /obj/Destroy()
STOP_PROCESSING(SSobj, src) 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("<span class = 'notice'>\The [m] tumbles out of \the [src]!</span>")
//VOREStation Add End
return ..() return ..()
/obj/Topic(href, href_list, var/datum/tgui_state/state = GLOB.tgui_default_state) /obj/Topic(href, href_list, var/datum/tgui_state/state = GLOB.tgui_default_state)