/tg/ Station 13 - Modules - Types

code/__HELPERS/atoms.dm

/proc/can_see Step-towards method of determining whether one atom can see another. Similar to viewers()
/proc/get_cardinal_dir Get the cardinal direction between two atoms
/proc/get_pixel_distance Finds the distance between two atoms, in pixels centered = FALSE counts from turf edge to edge centered = TRUE counts from turf center to turf center of course mathematically this is just adding world.icon_size on again
/proc/got_wall_item Check if there is already a wall item on the turf loc
/proc/random_step Forces the atom to take a step in a random direction
/proc/is_source_facing_target Compare source's dir, the clockwise dir of source and the anticlockwise dir of source To the opposite dir of the dir returned by get_dir(target,source) If one of them is a match, then source is facing target
/proc/urange ultra range (no limitations on distance, faster than range for distances > 8); including areas drastically decreases performance
/proc/spiral_range similar function to range(), but with no limitations on the distance; will search spiralling outwards from the center
/proc/get_closest_atom Returns the closest atom of a specific type in a list from a source
/proc/pick_closest_path Returns a chosen path that is the closest to a list of matches
/proc/generate_items_inside Creates new items inside an atom based on a list
/proc/get Returns the atom type in the specified loc
/proc/pass A do nothing proc