Clean up of AStar procs, rework one into an independant adjacent turf proc (#20011)

* Should have done that the first time around

* Update turf.dm

* Got the order reversed
This commit is contained in:
Vi3trice
2023-01-03 01:07:40 -05:00
committed by GitHub
parent 1c05e8aa5e
commit 2c1b2874ec
2 changed files with 11 additions and 93 deletions
+1 -1
View File
@@ -377,7 +377,7 @@
if("tank") //Fishtank: Wets it's own tile and the 4 adjacent tiles (cardinal directions)
if(istype(T))
T.MakeSlippery()
for(var/turf/simulated/ST in T.CardinalTurfs())
for(var/turf/simulated/ST in T.AdjacentTurfs(open_only = TRUE, cardinal_only = TRUE))
ST.MakeSlippery()
if("wall") //Wall-tank: Wets it's own tile and the surrounding 8 tiles (3x3 square)
for(var/turf/simulated/ST in spiral_range_turfs(1, loc))