Page 1 of 1

BUG: Dropping commodities and Trade Surplus

Posted: Thu Sep 12, 2013 1:10 pm
by Tafoid
There is an issue as I see it with dropping items on a base that have adjustable levels (troops, probes, missiles, torpedoes). What is happening is that while the base level should be changed, it should also take in account the trace surplus if it is set on the planet. Any planet without trade surplus.. the current implementation works correctly.

For example, I have 36000 troops on planet, level set to 6000 and trade surplus is 500% (6000 + (6000 * 5) = 36000). Now, lets say I drop 10000 to the planet. Instead of adding to the effective limit since the current base/effective limit is filled, it adjusts the base, so that now the base troop level is 16000. Factor in the trade surplus of 500% and the effective limit now becomes (16000 + (16000 * 5) = 96000).

In case of any trade surplus, the effective level should be adjusted and then the base level reset to match or handle the current drop, even if it's not an even division. For the instance above, the new effective limit should be 46000 and calculating the new base troop level, you take the current effective level after the drop (36000 + 10000) = 46000 and divide that by 6 (100% (base) + 500% (trade surplus) / 100), leaving you with a new base of 46000 / 6 = 7667 Troops.

Re: BUG: Dropping commodities and Trade Surplus

Posted: Thu Sep 12, 2013 1:16 pm
by Cossid
Working on this. I initially have the calculation corrected, but a new issue has cropped up I need to spend more time researching.

Re: BUG: Dropping commodities and Trade Surplus

Posted: Fri Sep 13, 2013 12:40 am
by Cossid
This should now be fixed, but may need a bit more testing, so if you get a chance, please try changing settings a few times and verify it works as expected.