mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-21 08:06:43 +01:00
19 lines
444 B
Plaintext
19 lines
444 B
Plaintext
|
|
//* This file is explicitly licensed under the MIT license. *//
|
|
//* Copyright (c) 2024 Citadel Station developers. *//
|
|
|
|
/datum/ai_pathfinder/jps
|
|
|
|
/datum/ai_pathfinder/jps/search(atom/movable/agent, atom/source, atom/destination, limit, within, slack)
|
|
var/list/path = SSpathfinder.get_path_jps(
|
|
agent,
|
|
source,
|
|
destination,
|
|
within,
|
|
limit,
|
|
slack,
|
|
)
|
|
if(isnull(path))
|
|
return null
|
|
return new /datum/ai_pathing(path, TRUE)
|