/objs with people in them spit out the people before they Destroy()

This commit is contained in:
VerySoft
2022-08-30 06:26:52 -04:00
parent d8fddf3331
commit a00163a241
+14
View File
@@ -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("span class = 'notice'>\The [m] tumbles out of \the [src]!</span>")
//VOREStation Add End
return ..()
/obj/Topic(href, href_list, var/datum/tgui_state/state = GLOB.tgui_default_state)