From a2d3e518615a0ca93aed5796133c507d045196b2 Mon Sep 17 00:00:00 2001 From: warriorstar-orion Date: Wed, 22 May 2024 20:06:58 -0400 Subject: [PATCH] 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 --------- Signed-off-by: warriorstar-orion Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com> --- code/game/turfs/turf.dm | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/code/game/turfs/turf.dm b/code/game/turfs/turf.dm index d8465c69431..17b4c5e637f 100644 --- a/code/game/turfs/turf.dm +++ b/code/game/turfs/turf.dm @@ -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()