mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
refactor: remove unused /turf/proc/reachableAdjacentTurfs (#25580)
* refactor: remove unused /turf/proc/reachableAdjacentTurfs * Update code/game/turfs/turf.dm Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> --------- Signed-off-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
co-authored by
DGamerL
parent
83dfa64ecb
commit
a2d3e51861
@@ -581,27 +581,6 @@
|
||||
/turf/AllowDrop()
|
||||
return TRUE
|
||||
|
||||
/**
|
||||
* Returns adjacent turfs to this turf that are reachable, in all cardinal directions
|
||||
*
|
||||
* Arguments:
|
||||
* * caller: The movable, if one exists, being used for mobility checks to see what tiles it can reach
|
||||
* * ID: An ID card that decides if we can gain access to doors that would otherwise block a turf
|
||||
* * simulated_only: Do we only worry about turfs with simulated atmos, most notably things that aren't space?
|
||||
* * no_id: When true, doors with public access will count as impassible
|
||||
*/
|
||||
/turf/proc/reachableAdjacentTurfs(caller, ID, simulated_only, no_id = FALSE)
|
||||
var/static/space_type_cache = typecacheof(/turf/space)
|
||||
. = list()
|
||||
|
||||
for(var/iter_dir in GLOB.cardinal)
|
||||
var/turf/turf_to_check = get_step(src, iter_dir)
|
||||
if(!turf_to_check || (simulated_only && space_type_cache[turf_to_check.type]))
|
||||
continue
|
||||
if(turf_to_check.density || LinkBlockedWithAccess(turf_to_check, caller, ID, no_id = no_id))
|
||||
continue
|
||||
. += turf_to_check
|
||||
|
||||
// Makes an image of up to 20 things on a turf + the turf
|
||||
/turf/proc/photograph(limit = 20)
|
||||
var/image/I = new()
|
||||
|
||||
Reference in New Issue
Block a user