Allows Storytellers to go freely between z-levels (#20806)

As title. Previously they were bound to only being able to move up or
down in microgravity, like a regular mob.

This is just using a proc copied straight from ghost/observer, there's
probably a more elegant solution - I'm curious if there would be any
negative implications to just giving everything under /ghost this
behaviour.
This commit is contained in:
hazelrat
2025-06-22 18:09:17 +00:00
committed by GitHub
parent 4a63be9448
commit 9f84a4148c
2 changed files with 60 additions and 1 deletions
+2 -1
View File
@@ -112,7 +112,8 @@
else
to_chat(owner, SPAN_NOTICE("There is nothing of interest in this direction."))
/mob/abstract/ghost/observer/zMove(direction)
// Both observers and storytellers depend on this to be able to move through z-levels freely!
/mob/abstract/ghost/zMove(direction)
var/turf/T = get_turf(src)
var/turf/destination = (direction == UP) ? GET_TURF_ABOVE(T) : GET_TURF_BELOW(T)
if(destination)