| /proc/get_random_station_turf | Returns a random turf on the station |
|---|
| /proc/get_safe_random_station_turf | Returns a random turf on the station, excludes dense turfs (like walls) and areas that have valid_territory set to FALSE |
|---|
| /proc/get_turf_pixel | Lets the turf this atom's ICON appears to inhabit
it takes into account:
Pixel_x/y
Matrix x/y
NOTE: if your atom has non-standard bounds then this proc
will handle it, but:
if the bounds are even, then there are an even amount of "middle" turfs, the one to the EAST, NORTH, or BOTH is picked
this may seem bad, but you're at least as close to the center of the atom as possible, better than byond's default loc being all the way off)
if the bounds are odd, the true middle turf of the atom is returned |
|---|
| /proc/pixel_offset_turf | Takes a turf, and a list of x and y pixel offsets and returns the turf that the offset position best lands in |
|---|
| /proc/get_visual_offset | Returns how visually "off" the atom is from its source turf as a list of x, y (in pixel steps)
it takes into account:
Pixel_x/y
Matrix x/y
Icon width/height |
|---|
| /proc/parse_caught_click_modifiers | Returns a turf based on text inputs, original turf and viewing client |
|---|
| /proc/spiral_range_turfs | similar function to RANGE_TURFS(), but will search spiralling outwards from the center (like the above, but only turfs) |
|---|
| /proc/valid_build_direction | Checks whether the target turf is in a valid state to accept a directional construction
such as windows or railings. |
|---|
| /proc/get_offset_target_turf | Returns turf relative to target_atom offset in dx and dy tiles, bound to map limits |
|---|
| /proc/get_ranged_target_turf | Returns turf relative to A in given direction at set range
Result is bounded to map size
Note range is non-pythagorean
Used for disposal system |
|---|
| /proc/get_edge_target_turf | Returns the turf located at the map edge in the specified direction relative to target_atom used for mass driver |
|---|
| /proc/get_atom_on_turf | Returns the top-most atom sitting on the turf.
For example, using this on a disk, which is in a bag, on a mob,
will return the mob because it's on the turf. |
|---|
| /proc/get_teleport_loc | Returns location. Returns null if no location was found. |
|---|