fixed boss

This commit is contained in:
Boki 2026-02-23 00:32:19 -05:00
parent a197be4087
commit adc2450013
12 changed files with 1135 additions and 1093 deletions

View file

@ -47,7 +47,7 @@ public class BotOrchestrator : IAsyncDisposable
public BossDetector BossDetector { get; }
public FrameSaver FrameSaver { get; }
public LootDebugDetector LootDebugDetector { get; }
public BossRunExecutor BossRunExecutor { get; }
public KulemakExecutor KulemakExecutor { get; }
public volatile bool ShowYoloOverlay = true;
public volatile bool ShowFightPositionOverlay = true;
private readonly Dictionary<string, ScrapExecutor> _scrapExecutors = new();
@ -94,7 +94,7 @@ public class BotOrchestrator : IAsyncDisposable
Navigation = new NavigationExecutor(game, pipelineService.Pipeline, minimapCapture,
enemyDetector: EnemyDetector);
BossRunExecutor = new BossRunExecutor(game, screen, inventory, logWatcher, store.Settings, BossDetector, HudReader, Navigation);
KulemakExecutor = new KulemakExecutor(game, screen, inventory, logWatcher, store.Settings, BossDetector, HudReader, Navigation);
logWatcher.AreaEntered += area =>
{
@ -212,9 +212,9 @@ public class BotOrchestrator : IAsyncDisposable
return;
}
}
if (BossRunExecutor.State != BossRunState.Idle)
if (KulemakExecutor.State != MappingState.Idle)
{
State = BossRunExecutor.State.ToString();
State = KulemakExecutor.State.ToString();
return;
}
if (Navigation.State != NavigationState.Idle)
@ -301,7 +301,7 @@ public class BotOrchestrator : IAsyncDisposable
await Game.FocusGame();
await Screen.Warmup();
BossRunExecutor.StateChanged += _ => UpdateExecutorState();
KulemakExecutor.StateChanged += _ => UpdateExecutorState();
Navigation.StateChanged += _ => UpdateExecutorState();
_started = true;
@ -320,7 +320,7 @@ public class BotOrchestrator : IAsyncDisposable
Emit("info", "Starting boss run loop...");
State = "Preparing";
_ = BossRunExecutor.RunBossLoop().ContinueWith(t =>
_ = KulemakExecutor.RunBossLoop().ContinueWith(t =>
{
if (t.IsFaulted)
{