From 14c83b56b918bf9e34178f7549c50bdd238f79bc Mon Sep 17 00:00:00 2001 From: John McCardle Date: Thu, 6 Jan 2022 18:37:52 -0500 Subject: [PATCH] Use constants as keys correctly --- store/incremental.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/store/incremental.js b/store/incremental.js index b0c55b6..d99cd4f 100644 --- a/store/incremental.js +++ b/store/incremental.js @@ -15,7 +15,7 @@ export const state = () => ({ produces: currencies.seasons, deviceCount: new Decimal(0), workerCount: new Decimal(0), - unlockThreshold: {currencies.seasons: 0, tech: null} + unlockThreshold: {[currencies.seasons]: 0, tech: null} }, { device: "Stone Calendar", worker: "Stonecarver", @@ -23,7 +23,7 @@ export const state = () => ({ produces: currencies.months, deviceCount: new Decimal(0), workerCount: new Decimal(0), - unlockThreshold: {currencies.seasons: 1, tech: null} + unlockThreshold: {[currencies.seasons]: 1, tech: null} }, { device: "Astrolabes", worker: "Mathematician", @@ -31,12 +31,12 @@ export const state = () => ({ produces: currencies.days, deviceCount: new Decimal(0), workerCount: new Decimal(0), - unlockThreshold: {currencies.days: 10, tech: 0} + unlockThreshold: {[currencies.days]: 10, tech: 0} } ], upgrades: [ - { name: "Mathematics" + { name: "Mathematics", boughtWith: currencies.seasons, price: 100, purchased: false