diff --git a/apps/web/src/components/game/adventurerPanel.tsx b/apps/web/src/components/game/adventurerPanel.tsx index e6efe97..d0f9a95 100644 --- a/apps/web/src/components/game/adventurerPanel.tsx +++ b/apps/web/src/components/game/adventurerPanel.tsx @@ -175,7 +175,7 @@ const AdventurerCard = ({ * @returns The JSX element. */ const AdventurerPanel = (): JSX.Element => { - const { state, formatNumber } = useGame(); + const { state, formatNumber, toggleAutoAdventurer } = useGame(); const [ showLocked, setShowLocked ] = useState(true); const [ batchSize, setBatchSize ] = useState(() => { return parseBatchSize(localStorage.getItem("elysium_batch_size")); @@ -207,6 +207,11 @@ const AdventurerPanel = (): JSX.Element => { } } + const autoAdventurerUnlocked = state.prestige.purchasedUpgradeIds.includes( + "auto_adventurer", + ); + const autoAdventurerOn = state.autoAdventurer === true; + function handleToggle(): void { setShowLocked((current) => { return !current; @@ -217,11 +222,34 @@ const AdventurerPanel = (): JSX.Element => {

{"Adventurers"}

- +
+ {autoAdventurerUnlocked + ? + : null + } + +
{batchOptions.map((option) => {