mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 20:47:10 +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:
@@ -308,11 +308,10 @@
|
||||
|
||||
return FALSE
|
||||
|
||||
/obj/structure/m_tray/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE)
|
||||
/obj/structure/m_tray/CanPathfindPass(to_dir, datum/can_pass_info/pass_info)
|
||||
. = !density
|
||||
if(ismovable(caller))
|
||||
var/atom/movable/mover = caller
|
||||
. = . || mover.checkpass(PASSTABLE)
|
||||
if(pass_info.is_movable)
|
||||
. = . || pass_info.pass_flags & PASSTABLE
|
||||
|
||||
/obj/structure/m_tray/Process_Spacemove(movement_dir)
|
||||
return TRUE
|
||||
|
||||
Reference in New Issue
Block a user