Post Mon Jun 28, 2010 4:09 am

Current Commodity System Overview

Certain commodities are produced on some worlds, and consumed on others.

Consumption rates of commodities are calculated as a percentage (this percentage is static) of all commodities left in the system. This rate is bounded by two static maximum and minimum consumption rates--pulling numbers out of thin air, the general consumption rate could be 20% of the planet's remaining supply of the given commodity, bounded by consuming a maximum of 300 tons of that commodity a day, but consuming at least 50 tons a day as well. When the supply hits 0, obviously no consumption will continue until the system is supplied with more goods.

Production works in a very similar manner, except the world will produce a certain % of a set "maximum supply" minus current supply. Once that "maximum supply" limit is reached, production will cease until goods are bought to bring the supply lower. Once again, the rates are bounded by minimum and maximum supply numbers--but production ceases/ignores those numbers once the max supply limit is reached.

Price is calculated as a function of a given world's normalized production/consumption rate, normalized supply of the given commodity, the set commodity maximum price, and whether the planet is a producer or consumer of the given commodity.

Where X is the normalized supply, Y is the normalized production/consumption rate, and Z is the commodity-specific modifier ( essentially the maximum price of the commodity ):

Commodity Price = ( 1 - X ) * Y * Z
If Commodity Price < Commodity Minimum Price:
Commodity Price = Commodity Minimum Price

If Commodity is being Produced on the given world:
Commodity Price = Commodity Price * .8
Else If Commodity is being Consumed on the given world:
Commodity Price = Commodity Price * 1.2
Black hole sun, won't you come...