mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
Retrofit TG pathfinder with upstream improvements (#25583)
* Retrofit TG pathfinder with upstream improvements * i know how things work * don't use HAS_TRAIT for things that aren't traits * unique filenames * i'm just a goofy lil moron * use new block syntax * apparently values don't need clamping with new block syntax? * silence invalid JPS dest runtime * fix runtime passing ID instead of access list
This commit is contained in:
@@ -76,17 +76,16 @@
|
||||
return ..()
|
||||
|
||||
|
||||
/obj/structure/plasticflaps/CanPathfindPass(obj/item/card/id/ID, to_dir, caller, no_id = FALSE)
|
||||
if(isliving(caller))
|
||||
if(isbot(caller) || isdrone(caller))
|
||||
return TRUE
|
||||
/obj/structure/plasticflaps/CanPathfindPass(to_dir, datum/can_pass_info/pass_info)
|
||||
if(pass_info.is_bot || pass_info.is_drone)
|
||||
return TRUE
|
||||
|
||||
if(!pass_info.can_ventcrawl && pass_info.mob_size != MOB_SIZE_TINY)
|
||||
return FALSE
|
||||
|
||||
if(pass_info.pulling_info)
|
||||
return CanPathfindPass(to_dir, pass_info.pulling_info)
|
||||
|
||||
var/mob/living/M = caller
|
||||
if(!M.ventcrawler && M.mob_size != MOB_SIZE_TINY)
|
||||
return FALSE
|
||||
var/atom/movable/M = caller
|
||||
if(M && M.pulling)
|
||||
return CanPathfindPass(ID, to_dir, M.pulling)
|
||||
return TRUE //diseases, stings, etc can pass
|
||||
|
||||
/obj/structure/plasticflaps/deconstruct(disassembled = TRUE)
|
||||
|
||||
Reference in New Issue
Block a user