/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/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/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/parse_caught_click_modifiers | Returns a turf based on text inputs, original turf and viewing client |
---|