BUG: Dropping commodities and Trade Surplus
Posted: Thu Sep 12, 2013 1:10 pm
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.
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.