getting better

This commit is contained in:
Boki 2026-02-22 18:41:23 -05:00
parent 634373fa4d
commit bd55e3031d
5 changed files with 8 additions and 8 deletions

View file

@ -457,9 +457,9 @@ public class BossRunExecutor : GameExecutor
}
if (_stopped) return;
// Walk back to fight area — fightWorldX/Y carries position from all phases
// Walk back to fight area — stop early if boss already spawned nearby
Log.Information("Walking to fight position ({X:F0},{Y:F0})", fightWorldX, fightWorldY);
await WalkToWorldPosition(fightWorldX, fightWorldY);
await WalkToWorldPosition(fightWorldX, fightWorldY, cancelWhen: IsBossAlive);
await Sleep(300);
Log.Information("Attacking at ring fight position");
await AttackBossUntilGone(fightWorldX, fightWorldY);
@ -548,7 +548,7 @@ public class BossRunExecutor : GameExecutor
/// Start background combat loop, returning the task and CTS.
/// Caller must cancel + await + ReleaseAll when done.
/// </summary>
private (Task combatTask, CancellationTokenSource cts) StartCombatLoop(int x = 1280, int y = 660, int jitter = 30)
private (Task combatTask, CancellationTokenSource cts) StartCombatLoop(int x = 1280, int y = 660, int jitter = 0)
{
_combatTargetX = x;
_combatTargetY = y;
@ -771,7 +771,7 @@ public class BossRunExecutor : GameExecutor
private async Task AttackAtPosition(int x, int y, int durationMs)
{
var (combatTask, cts) = StartCombatLoop(x, y, jitter: 20);
var (combatTask, cts) = StartCombatLoop(x, y, jitter: 0);
try
{
var sw = Stopwatch.StartNew();
@ -790,7 +790,7 @@ public class BossRunExecutor : GameExecutor
private async Task AttackUntilBossDead(int x, int y, int timeoutMs)
{
var (combatTask, cts) = StartCombatLoop(x, y, jitter: 20);
var (combatTask, cts) = StartCombatLoop(x, y, jitter: 0);
try
{
var sw = Stopwatch.StartNew();