This mod fixes the issue with massive inflation of trade bar income in Storm of Zehir campaign, which happens when not collecting trade bars often.
Why this happens?
There is an error in ProcessCompanyIncome() income function, used when sufficient amount of time passes. It adds some base income based on the number of trade posts owned, which is fine. But after that, it multiplies whole trade bar reserve you haven't collected with bonus which depends from the number of keep upgrades you have (around 90%, if having all upgrades).
As you see, the longer you wait before collecting your trade bars, the more times whole "pot" gets multiplied, leading to huge inflation in trade bars earnings. If you wait too much, it can even lead to getting negative trade bars income (due to "income overflow").
This fix will move upgrade bonus calculation from ProcessCompanyIncome() to AwardCompanyIncome() function, which is run just once, when it's time to collect your trade bars.
How to install?
Move files from archive to your Override folder. To get effects of this fix fully, it's better to start new campaign, or introduce fix before doing first upgrade to the keep.
If for some reason you want to use this fix later in campaign, I advise first collecting your trade bars, saving the game, and then applying this fix. That way, all income awarded later will not suffer from inflation.
NOTE:
Due to issue being fixed with 1.22 patch, this fix is now Obsolete.