feat: Issue 34 - instruments now produce spare time, at a rate proportional to the number of workers

This commit is contained in:
John McCardle 2022-01-08 22:56:36 -05:00
commit 095938e8eb
2 changed files with 18 additions and 8 deletions

View file

@ -60,24 +60,30 @@ export const state = () => ({
instrument: 'Star Chart',
worker: 'Shaman',
deviceCount: new Decimal(0),
workerCount: 0,
workerCount: 1,
completion: 0,
workerRate: 8.0, // amount added to "completion" (100=full bar) per worker
reward: 10, // currency added when the bar is completed
unlockThreshold: { tech: null, currency: 0 },
},
{
instrument: 'Stone Calendar',
worker: 'Stonecarver',
deviceCount: new Decimal(0),
workerCount: 0,
workerCount: 1,
completion: 0,
workerRate: 4.0,
reward: 35,
unlockThreshold: { tech: null, currency: 10000 },
},
{
instrument: 'Astrolabes',
worker: 'Mathematician',
deviceCount: new Decimal(0),
workerCount: 0,
workerCount: 1,
completion: 0,
workerRate: 1.5,
reward: 80,
unlockThreshold: { tech: 0, currency: new Decimal(10e5) },
},
],