Makes pods work with the force_eject_occupant proc

This commit is contained in:
joep van der velden
2020-10-29 00:08:52 +01:00
parent 4f982f38f1
commit b586a90257
13 changed files with 37 additions and 26 deletions
+1 -1
View File
@@ -353,7 +353,7 @@ a {
/obj/proc/check_uplink_validity()
return TRUE
/obj/proc/force_eject_occupant()
/obj/proc/force_eject_occupant(mob/target)
// This proc handles safely removing occupant mobs from the object if they must be teleported out (due to being SSD/AFK, by admin teleport, etc) or transformed.
// In the event that the object doesn't have an overriden version of this proc to do it, log a runtime so one can be added.
CRASH("Proc force_eject_occupant() is not overriden on a machine containing a mob.")
@@ -358,7 +358,7 @@
/obj/structure/closet/AllowDrop()
return TRUE
/obj/structure/closet/force_eject_occupant()
/obj/structure/closet/force_eject_occupant(mob/target)
// Its okay to silently teleport mobs out of lockers, since the only thing affected is their contents list.
return