TrebbleBiscuit / TrebbleBiscuit.github.io

0 stars 0 forks source link

Make a getOutput function #3

Open TrebbleBiscuit opened 2 years ago

TrebbleBiscuit commented 2 years ago

Right now there's something like gameData.printer.output that gets multiplied by a constant whenever an upgrade applies. It should instead be calculated by a function so that balance changes can be retroactive.

This change will likely obsolete the prestige function.

ideally:

i.e. rework calculation of cost, output, and upgrade cost. These should take as inputs:

Perhaps in addition to something like baseCost there should be baseCostMultiplier? If so, I think that should be in its own data structure and not in the savegame. Actually, the same could be said for baseCost, baseOutput, and baseUpgradeCost...

TrebbleBiscuit commented 2 years ago

Also need:

TrebbleBiscuit commented 2 years ago

Perhaps I should create classes for these money generators and have this stuff all be properties of each object. Then I can have methods where you pass in qty and it spits out income.