Use constants as keys correctly

This commit is contained in:
John McCardle 2022-01-06 18:37:52 -05:00
parent cf54e26dbf
commit 14c83b56b9
1 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@ export const state = () => ({
produces: currencies.seasons, produces: currencies.seasons,
deviceCount: new Decimal(0), deviceCount: new Decimal(0),
workerCount: new Decimal(0), workerCount: new Decimal(0),
unlockThreshold: {currencies.seasons: 0, tech: null} unlockThreshold: {[currencies.seasons]: 0, tech: null}
}, },
{ device: "Stone Calendar", { device: "Stone Calendar",
worker: "Stonecarver", worker: "Stonecarver",
@ -23,7 +23,7 @@ export const state = () => ({
produces: currencies.months, produces: currencies.months,
deviceCount: new Decimal(0), deviceCount: new Decimal(0),
workerCount: new Decimal(0), workerCount: new Decimal(0),
unlockThreshold: {currencies.seasons: 1, tech: null} unlockThreshold: {[currencies.seasons]: 1, tech: null}
}, },
{ device: "Astrolabes", { device: "Astrolabes",
worker: "Mathematician", worker: "Mathematician",
@ -31,12 +31,12 @@ export const state = () => ({
produces: currencies.days, produces: currencies.days,
deviceCount: new Decimal(0), deviceCount: new Decimal(0),
workerCount: new Decimal(0), workerCount: new Decimal(0),
unlockThreshold: {currencies.days: 10, tech: 0} unlockThreshold: {[currencies.days]: 10, tech: 0}
} }
], ],
upgrades: [ upgrades: [
{ name: "Mathematics" { name: "Mathematics",
boughtWith: currencies.seasons, boughtWith: currencies.seasons,
price: 100, price: 100,
purchased: false purchased: false