[MIRROR] Mobs will no longer be despawned if they aren't inside a cryopod (#9754)

Co-authored-by: Kashargul <144968721+Kashargul@users.noreply.github.com>
This commit is contained in:
CHOMPStation2StaffMirrorBot
2025-01-01 01:00:19 -07:00
committed by GitHub
parent f62610e627
commit 785c50a552
2 changed files with 8 additions and 7 deletions

View File

@@ -340,6 +340,9 @@
//Lifted from Unity stasis.dm and refactored. ~Zuhayr
/obj/machinery/cryopod/process()
if(occupant)
if(occupant.loc != src)
go_out(TRUE)
return
//Allow a ten minute gap between entering the pod and actually despawning.
if(world.time - time_entered < time_till_despawn)
return
@@ -663,12 +666,12 @@
for(var/obj/machinery/gateway/G in range(1,src))
G.icon_state = "on"
/obj/machinery/cryopod/robot/door/gateway/go_out()
..()
/obj/machinery/cryopod/robot/door/gateway/go_out(var/skip_move = FALSE)
..(skip_move)
for(var/obj/machinery/gateway/G in range(1,src))
G.icon_state = "off"
/obj/machinery/cryopod/proc/go_out()
/obj/machinery/cryopod/proc/go_out(var/skip_move = FALSE)
if(!occupant)
return
@@ -676,7 +679,7 @@
if(occupant.client)
occupant.client.eye = occupant.client.mob
occupant.client.perspective = MOB_PERSPECTIVE
if(!skip_move)
occupant.forceMove(get_turf(src))
if(ishuman(occupant) && applies_stasis)
var/mob/living/carbon/human/H = occupant

View File

@@ -1824,8 +1824,6 @@
rig.visor.deactivate()
to_chat(src, span_warning("\The [rig]'s visor has shuddenly deactivated!"))
..()
/mob/living/carbon/human/get_mob_riding_slots()
return list(back, head, wear_suit)