added items

This commit is contained in:
Boki 2026-02-28 15:13:31 -05:00
parent c3de5fdb63
commit 5f90bc137b
158 changed files with 2316 additions and 512 deletions

View file

@ -1,13 +1,13 @@
using Poe2Trade.Core;
using Poe2Trade.Game;
using Poe2Trade.Inventory;
using Poe2Trade.GameLog;
using Poe2Trade.Navigation;
using Poe2Trade.Screen;
using Poe2Trade.Trade;
using Automata.Core;
using Automata.Game;
using Automata.Inventory;
using Automata.GameLog;
using Automata.Navigation;
using Automata.Screen;
using Automata.Trade;
using Serilog;
namespace Poe2Trade.Bot;
namespace Automata.Bot;
public class BotStatus
{
@ -52,6 +52,7 @@ public class BotOrchestrator : IAsyncDisposable
public volatile bool ShowFightPositionOverlay = true;
private readonly Dictionary<string, ScrapExecutor> _scrapExecutors = new();
private readonly Dictionary<string, DiamondExecutor> _diamondExecutors = new();
private CraftingExecutor? _craftingExecutor;
// Events
public event Action? StatusUpdated;
@ -164,6 +165,10 @@ public class BotOrchestrator : IAsyncDisposable
TradeQueue.Clear();
// Stop crafting
_craftingExecutor?.Stop();
_craftingExecutor = null;
// Stop navigation and mapping
await Navigation.Stop();
KulemakExecutor.Stop();
@ -270,6 +275,12 @@ public class BotOrchestrator : IAsyncDisposable
return;
}
}
if (_craftingExecutor != null && _craftingExecutor.State != CraftingState.Idle
&& _craftingExecutor.State != CraftingState.Done)
{
State = _craftingExecutor.State.ToString();
return;
}
if (KulemakExecutor.State != MappingState.Idle)
{
State = KulemakExecutor.State.ToString();