diff --git a/src/data/layers/elves.tsx b/src/data/layers/elves.tsx index 38ef179..fd3330d 100644 --- a/src/data/layers/elves.tsx +++ b/src/data/layers/elves.tsx @@ -49,6 +49,21 @@ export interface ElfBuyable extends GenericBuyable { const id = "elves"; const day = 4; +const elvesThatReset = [ + "Holly", + "Ivy", + "Hope", + "Jack", + "Mary", + "Noel", + "Joy", + "Faith", + "Snowball", + "Star", + "Bell", + "Gingersnap" +]; + const layer = createLayer(id, function (this: BaseLayer) { const name = "Elves"; const colorBright = "red"; @@ -730,16 +745,13 @@ const layer = createLayer(id, function (this: BaseLayer) { description: jsx(() => ( <> {options.description} - {upgrade.bought.value || - ["Peppermint", "Twinkle", "Cocoa", "Frosty"].includes( - options.name - ) ? null : ( + {upgrade.bought.value || elvesThatReset.includes(options.name) ? ( <> {" "} Training this elf will require resetting all your progress from days 1-3. - )} + ) : null} {upgrade.bought.value && options.hasToggle === true ? ( <> showIf(packing.upgrades.packingElf.bought.value), buyMax: true, onAutoPurchase(buyable, amount) { - if (buyable === packing.helpers.loader && !management.elfTraining.packingElfTraining.milestones[3].earned.value) { + if ( + buyable === packing.helpers.loader && + !management.elfTraining.packingElfTraining.milestones[3].earned.value + ) { buyable.amount.value = Decimal.sub(buyable.amount.value, amount); } }