Shiptest 13 - Modules - TypesDefine Details

code/__HELPERS/unsorted.dm

ABS_COORTile coordinates (x, y) to absolute coordinates (in number of pixels). Center of a tile is generally assumed to be (16,16), but can be offset.
/proc/get_nested_locs Returns a list of all locations (except the area) the movable is within.
/proc/get_ranged_target_turf_direct Get ranged target turf, but with direct targets as opposed to directions
/proc/get_area_turfs Returns a list of all turfs in the provided area instance.
/proc/get_areatype_turfs Returns a list of all turfs in ALL areas of that type in the world.
/proc/valid_window_location Checks whether the target turf is in a valid state to accept a directional window or other directional pseudo-dense object such as railings.
/proc/REF \ref behaviour got changed in 512 so this is necesary to replicate old behaviour. If it ever becomes necesary to get a more performant REF(), this lies here in wait #define REF(thing) (thing && isdatum(thing) && (thing:datum_flags & DF_USE_TAG) && thing:tag ? "[thing:tag]" : text_ref(thing))
/proc/___TraitAdd DO NOT USE ___TraitAdd OR ___TraitRemove as a replacement for ADD_TRAIT / REMOVE_TRAIT defines. To be used explicitly for callback.
/proc/___TraitRemove DO NOT USE ___TraitAdd OR ___TraitRemove as a replacement for ADD_TRAIT / REMOVE_TRAIT defines. To be used explicitly for callback.

Define Details

ABS_COOR

Tile coordinates (x, y) to absolute coordinates (in number of pixels). Center of a tile is generally assumed to be (16,16), but can be offset.