Slimmmo / Slimmmo.github.io

AdVenture Capitalist calculator
http://slimmmo.github.io/
35 stars 42 forks source link

Insert Coins to Continue details #58

Closed dr-ishmael closed 8 years ago

dr-ishmael commented 8 years ago

I've got everything in except for the angel scale.

61352151511 commented 8 years ago

You're actually about a minute late, but don't worry about angel scale.

61352151511 commented 8 years ago

I do see that your values are the same as mine, however I've noticed that my values are causing the calculated price to be incorrect. Say for example Upgrading Fightingfrogs from 2 -> 5, it tells me this will cost 2941.24 however by adding up each cost I did actually spend I get 1069.38, so something is wrong with our values or this event acts different, if you'd like to help me figure this out, it would be appreciated.

dr-ishmael commented 8 years ago

Yeah, I didn't see your commit until after I submitted this.

I just figured it out. Our "baseCost" values are based on what we see when the event starts, which is actually the cost for the second of each investment (because the event gives us 1 of each by default). So we have to calculate backwards to get the cost of the first one:

$scope.insertcoin.baseCost = [2.5, 5, 7.5, 10, 12.5, 30, 50, 70, 125];

That should fix the calculations.

61352151511 commented 8 years ago

My calculations left me with 2.5, 5, 7.5, 10, 12.5, 32.7, 58.3, 70, 125

61352151511 commented 8 years ago

That did fix it though, Gonna close this.

dr-ishmael commented 8 years ago

The cost of the second Crow&Jack is 90, scale is 3, so 90/3 = 30. For Street Skid, the second costs 175, scale is 3.5, so 175/3.5 = 50.

61352151511 commented 8 years ago

You're right, I divided it by the wrong number.

dr-ishmael commented 8 years ago

Just noticed you have a typo - investment 8 is "Rad Cap," not "Red Cap."

61352151511 commented 8 years ago

Yep, I'm just playing a bit myself to see more cash upgrades and all this will be in the next push in a few seconds. I did notice that myself.

dr-ishmael commented 8 years ago

Cool, I'll leave you to it. :)