Skip to content

Commit

Permalink
add: JPS Move (#5673)
Browse files Browse the repository at this point in the history
JPS Move
  • Loading branch information
Gottfrei authored Aug 7, 2024
1 parent d3ac91b commit 41d967a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions code/__DEFINES/dcs/signals.dm
Original file line number Diff line number Diff line change
Expand Up @@ -1153,6 +1153,8 @@
#define COMSIG_MOVELOOP_POSTPROCESS "moveloop_postprocess"
//from [/datum/move_loop/has_target/jps/recalculate_path] ():
#define COMSIG_MOVELOOP_JPS_REPATH "moveloop_jps_repath"
///from [/datum/move_loop/has_target/jps/on_finish_pathing]
#define COMSIG_MOVELOOP_JPS_FINISHED_PATHING "moveloop_jps_finished_pathing"

///from of mob/MouseDrop(): (/atom/over, /mob/user)
#define COMSIG_DO_MOB_STRIP "do_mob_strip"
Expand Down
3 changes: 1 addition & 2 deletions code/controllers/subsystem/movement/movement_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@
moving.forceMove(get_step(moving, get_dir(moving, target)))
return old_loc != moving?.loc ? MOVELOOP_SUCCESS : MOVELOOP_FAILURE

/*

/**
* Used for following jps defined paths. The proc signature here's a bit long, I'm sorry
*
Expand Down Expand Up @@ -467,7 +467,6 @@
else
INVOKE_ASYNC(src, PROC_REF(recalculate_path))
return MOVELOOP_FAILURE
*/


///Base class of move_to and move_away, deals with the distance and target aspect of things
Expand Down

0 comments on commit 41d967a

Please sign in to comment.