mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-24 04:27:35 +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:
@@ -57,11 +57,10 @@ GLOBAL_LIST_EMPTY(blob_minions)
|
||||
/obj/structure/blob/CanAtmosPass(direction)
|
||||
return !atmosblock
|
||||
|
||||
/obj/structure/blob/CanPathfindPass(obj/item/card/id/ID, dir, caller, no_id = FALSE)
|
||||
. = 0
|
||||
if(ismovable(caller))
|
||||
var/atom/movable/mover = caller
|
||||
. = . || mover.checkpass(PASSBLOB)
|
||||
/obj/structure/blob/CanPathfindPass(to_dir, datum/can_pass_info/pass_info)
|
||||
. = FALSE
|
||||
if(pass_info.is_movable)
|
||||
. = . || pass_info.pass_flags & PASSBLOB
|
||||
|
||||
/obj/structure/blob/process()
|
||||
Life()
|
||||
|
||||
Reference in New Issue
Block a user