mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 10:12:45 +00:00
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:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user