Co-authored-by: silicons <2003111+silicons@users.noreply.github.com>
Co-authored-by: silicons <no@you.cat>
This commit is contained in:
Cadyn
2024-03-31 04:38:23 -07:00
committed by GitHub
parent d52286da16
commit ecd8125771
39 changed files with 2275 additions and 61 deletions

View File

@@ -209,7 +209,7 @@ var/global/list/possible_changeling_IDs = list("Alpha","Beta","Gamma","Delta","E
to_chat(src, "<span class='warning'>We cannot reach \the [M] with a sting!</span>")
return 0 //One is inside, the other is outside something.
// Maximum queued turfs set to 25; I don't *think* anything raises sting_range above 2, but if it does the 25 may need raising
if(!AStar(src.loc, M.loc, /turf/proc/AdjacentTurfsRangedSting, /turf/proc/Distance, max_nodes=25, max_node_depth=sting_range)) //If we can't find a path, fail
if(!SSpathfinder.get_path_jps(src, get_turf(src), get_turf(M), max_path_length = 25)) //CHOMPEdit
to_chat(src, "<span class='warning'>We cannot find a path to sting \the [M] by!</span>")
return 0
return 1