/tg/ Station 13 - Modules - TypesVar Details - Proc Details

elevation

Manages the elevation of the turf the source is on The atom with the highest pixel_shift gets to set the elevation of the turf to that value.

Vars

pixel_shiftThe amount of pixel_z applied to the mob standing on the turf

Procs

pre_change_turfWhen a turf with elevated objects changes, we need to unregister all the elevating objects on it. When a turf Initializes(), it calls Entered() on all of its moveable contents, which will invoke on_source_entering(), which will register each elevating object with the new turf. We need to do this because turfs do not keep their traits when changed, and so the check for TRAIT_TURF_HAS_ELEVATED_OBJ above will fail and cause override runtimes when we attempt to register the signals again.

Var Details

pixel_shift

The amount of pixel_z applied to the mob standing on the turf

Proc Details

pre_change_turf

When a turf with elevated objects changes, we need to unregister all the elevating objects on it. When a turf Initializes(), it calls Entered() on all of its moveable contents, which will invoke on_source_entering(), which will register each elevating object with the new turf. We need to do this because turfs do not keep their traits when changed, and so the check for TRAIT_TURF_HAS_ELEVATED_OBJ above will fail and cause override runtimes when we attempt to register the signals again.