SPLURT Station 13 - Modules - Types

code/__HELPERS/areas.dm

/proc/get_base_areaReturns the base area the target is located in if there is one. Alternatively, returns the area as is.
/proc/get_sub_areasReturns either null, or a list containing every sub area associated with our base area. If include_base is TRUE, the base area will also be added to the return list.
/proc/get_sub_areas_turfsProc used for purposes similar to get_areas_turfs(), but aimed to include associated areas. Only accepts area instances and paths for the first arg, no text strings. Returns a list of all turfs found in the sub areas (including the base's if include_base is TRUE) and located in a z level matching target_z, or anywhere if target_z is 0
/proc/get_sub_areas_contentsSimple proc that returns a sum of all contents from every sub area, Think of the above but for all contents, not just turfs, and without target z.