Skip to content

Commit

Permalink
actually navigate in combat
Browse files Browse the repository at this point in the history
  • Loading branch information
xanunderscore committed Feb 11, 2025
1 parent c7d310a commit f57ca5b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions BossMod/Modules/Global/DeepDungeon/AutoClear.cs
Original file line number Diff line number Diff line change
Expand Up @@ -685,14 +685,15 @@ private void HandleFloorPathfind(Actor player, AIHints hints)
hints.GoalZones.Add(p =>
{
var pp = player.Position;
return d switch
var improvement = d switch
{
Direction.North => pp.Z - p.Z,
Direction.South => p.Z - pp.Z,
Direction.East => p.X - pp.X,
Direction.West => pp.X - p.X,
_ => 0,
} * 0.001f;
};
return improvement > 10 ? 10 : 0;
});
}

Expand Down

0 comments on commit f57ca5b

Please sign in to comment.