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

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.3 MiB

After

Width:  |  Height:  |  Size: 7 MiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.8 MiB

After

Width:  |  Height:  |  Size: 5.6 MiB

Before After
Before After

Binary file not shown.

Before

Width:  |  Height:  |  Size: 339 KiB

After

Width:  |  Height:  |  Size: 316 KiB

Before After
Before After

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();

View file

@ -69,7 +69,7 @@ public class CombatManager
/// <summary>
/// One combat iteration: flask check, mana-based click/hold, mouse jitter toward target.
/// </summary>
public async Task Tick(int x, int y, int jitter = 30)
public async Task Tick(int x, int y, int jitter = 0)
{
await _flasks.Tick();
await UseAbilities();
@ -88,8 +88,8 @@ public class CombatManager
_smoothX += (x - _smoothX) * SmoothFactor;
_smoothY += (y - _smoothY) * SmoothFactor;
var mouseX = (int)_smoothX + Rng.Next(-jitter, jitter + 1);
var mouseY = (int)_smoothY + Rng.Next(-jitter, jitter + 1);
var mouseX = (int)_smoothX;
var mouseY = (int)_smoothY;
var mana = _hudReader.Current.ManaPct;