From 5ee4a7f7d5415e82eac70a54399f7df97c876339 Mon Sep 17 00:00:00 2001 From: Hikari Date: Fri, 20 Mar 2026 10:31:38 -0700 Subject: [PATCH] chore: add auto-adventurer toggle to adventurer panel header The toggle is now visible directly in the adventurer shop panel whenever the auto_adventurer prestige upgrade has been purchased. It mirrors the auto-boss button styling and only renders when the feature is unlocked, so players who haven't reached prestige yet see no change. Closes #89 --- .../src/components/game/adventurerPanel.tsx | 40 ++++++++++++++++--- 1 file changed, 34 insertions(+), 6 deletions(-) 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) => {