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

stationloving

Teleports the movable atom back to a safe turf on the station if it leaves the z-level or becomes inaccessible.

Vars

allow_item_destructionIf FALSE, prevents parent from being qdel'd unless it's a force = TRUE qdel.
inform_adminsIf TRUE, notifies admins when parent is teleported back to the station.

Procs

atom_in_boundsChecks whether a given atom's turf is within bounds. Returns TRUE if it is, FALSE if it isn't.
on_parent_pre_qdeletedSignal handler for before the parent is qdel'd. Can prevent the parent from being deleted where allow_item_destruction is FALSE and force is FALSE.
on_parent_unreachableSignal handler for when the parent enters an unreachable location. Always relocates the parent.
on_parent_z_changeSignal handler when the parent has changed z-levels. Checks to make sure it's a valid destination, if it's not then it relacates the parent instead.
relocateTeleports parent to a safe turf on the station z-level.

Var Details

allow_item_destruction

If FALSE, prevents parent from being qdel'd unless it's a force = TRUE qdel.

inform_admins

If TRUE, notifies admins when parent is teleported back to the station.

Proc Details

atom_in_bounds

Checks whether a given atom's turf is within bounds. Returns TRUE if it is, FALSE if it isn't.

on_parent_pre_qdeleted

Signal handler for before the parent is qdel'd. Can prevent the parent from being deleted where allow_item_destruction is FALSE and force is FALSE.

on_parent_unreachable

Signal handler for when the parent enters an unreachable location. Always relocates the parent.

on_parent_z_change

Signal handler when the parent has changed z-levels. Checks to make sure it's a valid destination, if it's not then it relacates the parent instead.

relocate

Teleports parent to a safe turf on the station z-level.