The new PlanetAssets can hold a planet-specific counter for how many items of a particular class are available. Players and AI can never buy more items than the planet offers. Additionally, the number can replenish with new items after each cycle. The rate of growth has to be set in the planet description data.
The second iteration could have two rates: production and consumption. Of course production and consumption are subtracted for each cycle and the surplus is supplied to the market, which slowly decreases the price modifier. A negative balance is reset to 0 but the price modifier is increased.
The new PlanetAssets can hold a planet-specific counter for how many items of a particular class are available. Players and AI can never buy more items than the planet offers. Additionally, the number can replenish with new items after each cycle. The rate of growth has to be set in the planet description data.
The second iteration could have two rates: production and consumption. Of course production and consumption are subtracted for each cycle and the surplus is supplied to the market, which slowly decreases the price modifier. A negative balance is reset to 0 but the price modifier is increased.