Supply and Demand Mod scales trader stock based on colony wealth, giving visiting traders more goods when your colony is rich enough to buy them.
Supply and Demand Mod Features
The Supply and Demand Mod adjusts trader inventories dynamically instead of creating new trader definitions or manually adding extra silver, leather, weapons, or other goods.
The mod takes your total colony wealth, scales it by game difficulty, and uses the natural logarithm of that value to create a scaling factor with diminishing returns. In simpler terms: the richer your colony is, the more stock traders will bring, but the increase slows down as wealth gets higher.
Mathbrain Stuff
The Supply and Demand Mod uses colony wealth as the main variable because it reflects how much your colony can realistically trade. However, wealth is compressed so traders do not end up carrying absurd quantities of items.
The natural logarithm was chosen because it grows more slowly over time, modeling diminishing returns. To preserve the effect of difficulty, wealth is also scaled by the price loss factor provided by the selected difficulty setting.
Lambda represents total colony wealth, while Phi represents the difficulty scalar. The minimum value of the scaling function is 1.
Compatibility notes
When troubleshooting the Supply and Demand Mod:
- See if the error persists if you only have this mod and its requirements active.
- If not, try adding your other mods until it happens again.
- Always post your log using the Log Uploader.
- For best support, please use the Discord-channel for error-reporting.
- Do not report errors by making a discussion-thread, I get no notification of that.
- If you have the solution for a problem, please post it to the GitHub repository.
- Use RimSort to sort your mods.
Additional credits: CookieWookiee, Kiame Vivacity.