Prep for the next cleaning quality cycle.
This commit is contained in:
parent
15bb69624b
commit
8368d2e751
3 changed files with 138 additions and 6 deletions
|
@ -109,14 +109,11 @@ bool Autowalker::path_player(Pathing& paths, Point& target_out) {
|
|||
bool found = paths.random_walk(target_out, false, PATHING_TOWARD, 4, 8);
|
||||
|
||||
if(!found) {
|
||||
fmt::println("4/8 NOT FOUND");
|
||||
// failed to find a linear path, try diagonal
|
||||
if(!paths.random_walk(target_out, false, PATHING_TOWARD, 8, 8)) {
|
||||
path_fail(paths.$paths, target_out);
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
fmt::println("4/8 YES FOUND");
|
||||
}
|
||||
|
||||
if(!fsm.$level.map->can_move(target_out)) {
|
||||
|
@ -222,7 +219,6 @@ void Autowalker::handle_boss_fight() {
|
|||
void Autowalker::handle_player_walk(ai::State& start, ai::State& goal) {
|
||||
start = update_state(start);
|
||||
auto a_plan = ai::plan("Walker::actions", start, goal);
|
||||
ai::dump_script("\n\n\n-----WALKER SCRIPT", start, a_plan.script);
|
||||
auto action = a_plan.script.front();
|
||||
|
||||
if(action.name == "find_enemy") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue