clickingbad
clickingbad copied to clipboard
Prices Not Matching Up
You'll notice that I can have 4,999 sleazy lawyers, and a 250B price, or I can have 5000 sleazy lawyers and a 250.1B price. Please take note that I am now a little upset. :(
From what I can tell, the formula for calculating cost is:
(#ofLawyers + 1) x base_cost x (#ofLawyers + 1) = cost ... AND if you have more than 10 of them, the cost is doubled.
So, I think it's mindful to note that buying an extra lawyer (4,999 to 5,000) is only a 0.02% increase in the overall number of lawyers owned, so you shouldn't expect a large increase in cost, relatively speaking.
I think we could fix this problem by implementing more multipliers for different amounts.
Also, here's the maths for the cost your 4,999th Sleazy Lawyer, and your 5,000th.
#ofLawyers = 4,999 base_cost = 5,000
Calculations #ofLawyers + 1 = 4,999 + 1 = 5,000 5,000 x base_cost = 5,000 x 5,000 = 25,000,000 25,000,000 x (#ofLawyers +1) = 25,000,000 x (5,000) = 125,000,000,000
#ofLawyers > 10 = true (So the cost is doubled) 125,000,000,000 x 2 = 250,000,000,000
Cost = $250 Billion
Now, for the 5,000th shark.
#ofLawyers = 5,000 base_cost = 5,000
Calculations #ofLawyers + 1 = 5,000 + 1 = 5,001 5,001 x base_cost = 5,001 x 5,000 = 25,005,000 25,005,000 x (#ofLawyers + 1) = 25,005,000 X (5,001) = 125,050,005,000
#ofLawyers > 10 = true 125,050,005,000 x 2 = 250,100,010,000
Cost = $250.1 Billion
You increased the #ofLawyers owned by 0.02%; and You increased the cost by 0.004%.
TL:DR - Stop buying so many damned lawyers, you're breaking the game hahaha.
Edit - Added a small fix idea. Original comment didn't really address anything.