diff --git a/src/sections/resources/2022/Autumnaton.tsx b/src/sections/resources/2022/Autumnaton.tsx index 5b1b2a0f..f0e2e6c8 100644 --- a/src/sections/resources/2022/Autumnaton.tsx +++ b/src/sections/resources/2022/Autumnaton.tsx @@ -74,47 +74,6 @@ const Autumnaton = () => { return null; } - const description: JSX.Element[] = []; - - if (have(autumnatonItem)) { - description.push( - - Next use will take{" "} - - {autobotsReturnTime} - {" "} - adventures. - , - ); - } else if (turncountWhereAutobotReturns > totalTurnsPlayed()) { - description.push( - - Will return in{" "} - - {turncountWhereAutobotReturns + 1 - totalTurnsPlayed()} - {" "} - adventures. - , - ); - description.push( - - - Currently exploring: {autumnatonQuestLocation?.identifierString} - - , - ); - } else if (turncountWhereAutobotReturns <= totalTurnsPlayed()) { - description.push( - - Next mission takes{" "} - - {autobotsReturnTime} - {" "} - adventures. - , - ); - } - const upgradesToGet: string[] = []; if (!autumnatonUpgrades.includes("cowcatcher")) { upgradesToGet.push( @@ -136,16 +95,6 @@ const Autumnaton = () => { upgradesToGet.push("Visit mid indoor for -11 cooldown (Haunted Library?)"); } - if (upgradesToGet.length > 0) { - description.push( - - {upgradesToGet.map((text) => ( - {text} - ))} - , - ); - } - const potentialTargets: [string, string][] = []; if (get("_inRunBool") && currentPath.id !== 25) { if ( @@ -189,33 +138,59 @@ const Autumnaton = () => { } } - if (potentialTargets.length > 0) { - description.push( - - Potential Targets - {potentialTargets.map(([item, location], index) => ( - - ({location}) - - ))} - - } - label="Potential Autumnaton Targets" - />, - ); - } - return ( - Grabs items from a zone you've previously visited., - {description} + Grabs items from a zone you've previously visited. + {have(autumnatonItem) ? ( + + Next use will take{" "} + + {autobotsReturnTime} + {" "} + adventures. + + ) : ( + <> + + Will return in{" "} + + {turncountWhereAutobotReturns + 1 - totalTurnsPlayed()} + {" "} + adventures. + + + + Currently exploring: {autumnatonQuestLocation?.identifierString}. + + + + )} + {upgradesToGet.length > 0 && ( + + {upgradesToGet.map((text) => ( + {text} + ))} + + )} + {potentialTargets.length > 0 && ( + + Potential Targets + {potentialTargets.map(([item, location], index) => ( + + ({location}) + + ))} + + } + label="Potential Autumnaton Targets" + /> + )} ); };