BUG: Dropping commodities and Trade Surplus

Stellar Emperor Alpha testing. Builds may have a short period of working operation. Gameplay operations may change drastically from day to day. Feel free to join in the testing.
Locked
Tafoid
Cadet
Posts: 33
Joined: Fri Apr 25, 2008 8:49 pm

BUG: Dropping commodities and Trade Surplus

Post 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.
Last edited by Tafoid on Thu Sep 12, 2013 1:57 pm, edited 1 time in total.
User avatar
Cossid
Site Admin
Posts: 262
Joined: Mon Mar 31, 2008 10:39 am
Location: Eau Claire, WI, USA
Contact:

Re: BUG: Dropping commodities and Trade Surplus

Post 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.
--Cossid AKA Caleb
User avatar
Cossid
Site Admin
Posts: 262
Joined: Mon Mar 31, 2008 10:39 am
Location: Eau Claire, WI, USA
Contact:

Re: BUG: Dropping commodities and Trade Surplus

Post 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.
--Cossid AKA Caleb
Locked