/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_loc_secludedSignal proc for [SIGNAL_ADDTRAIT], via TRAIT_SECLUDED_LOCATION on our locs, to ensure nothing funky happens
on_parent_movedSignal proc for COMSIG_MOVABLE_MOVED, called when our parent moves, or our parent's loc, or our parent's loc loc... To check if our disk is moving somewhere it shouldn't be, such as off Z level, or into an invalid area
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.
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_loc_secluded

Signal proc for [SIGNAL_ADDTRAIT], via TRAIT_SECLUDED_LOCATION on our locs, to ensure nothing funky happens

on_parent_moved

Signal proc for COMSIG_MOVABLE_MOVED, called when our parent moves, or our parent's loc, or our parent's loc loc... To check if our disk is moving somewhere it shouldn't be, such as off Z level, or into an invalid area

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.

relocate

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