Frostleaf in my game is upgraded to level 2000, and I want to calculate the cost to buy another 1000 levels.
When trying to calculate my hero costs I ran into some problems. The formulas I found seem simple enough and claim to be based on the source of the game. Specifically it says to use this for any Hero who is not Cid:
Hero_cost = Base_cost * 1.07^level
That seems straightforward. Looking up Frostleaf's base cost I found the value claimed was 2.1S
aka 2.1e24
. This seems to be the case in a new game. (update Note that it was 2.1, but the units was not S but O... this crept into the wikia edits when someone edited 2,1000S to 2.1S instead of 2.1O then someone else replicated this across the whole page.)
Yet if I put the following into a spreadsheet or calculator:
2.1e24 * 1.07^2000
I get
1.22963060815929e83
When I roll over Frostleaf in my game it tells me the following costs:
1: 5.902e85 (This is like about two and a half orders of magnitude higher than the formula result!)
10: 8.154e86
25: 3.733e87
100: 7.307e89
So, I must not be accounting for something and it doesn't seem to be a relic as they would reduce, not add, cost (looking only at buying 1 more Frostleaf). I've also used the formula backwards and it would seem that based on what is in my game, if the formula is true, the base cost of Frostleaf was ~1.008e27
again two and a half orders of magnitude higher.
Additionally assuming I figure out what this problem is with the simple formula, I still need to sum the cost of each level of hero bought, like:
sum(2.1e24 * 1.07^n) where:
n goes from 2000 to 2009 (should be 8.154e86)
n goes from 2000 to 2024 (should be 3.733e87)
n goes from 2000 to 2099 (should be 7.307e89)
and ultimately n goes from 2000 to 2999 (this is the number I would like to calculate)
If even the base formula and values I found don't accurately model buying the 2001st Frostleaf, then I can't move on to these next steps.
Help with either part would be much appreciated.
2.1e24 * 1.07^2000
, since you are upgrading from level 2000.