Atoms can now be stationloving (#24748)

* Objects can now be stationloving

Stationloving objects are objects that love the station so much, they
will relocate back to the station if spaced or if destroyed.

Yes, this does sound a lot like the behaviour of the nuke disk. Except
made more generic.

Currently the only stationloving object is the nuke disk.

* Moved from /obj to /atom/movable

* Remie fix
This commit is contained in:
coiax
2017-03-10 09:42:02 +13:00
committed by oranges
parent aa98a443d4
commit 60f7c1df3f
7 changed files with 140 additions and 55 deletions
+2 -2
View File
@@ -38,11 +38,11 @@
else
T.add_blueprints_preround(src)
/obj/Destroy()
/obj/Destroy(force=FALSE)
if(!istype(src, /obj/machinery))
STOP_PROCESSING(SSobj, src) // TODO: Have a processing bitflag to reduce on unnecessary loops through the processing lists
SStgui.close_uis(src)
return ..()
. = ..()
/obj/throw_at(atom/target, range, speed, mob/thrower, spin=1, diagonals_first = 0, datum/callback/callback)
..()