Go to the first, previous, next, last section, table of contents.

Unit Production and Consumption

Units can be set to always produce some amount of material without taking explicit action.

Table: base-production u m -> n

This table is the basic amount of each material m produced by a unit of type u in each turn. Defaults to 0.

Table: occupant-base-production u m -> n

This table is the base production of each material m when a unit of type u is an occupant. Defaults to 0.

Table: productivity u t -> n%

This base is the percentage productivity of a unit of type u when on terrain of type t. This is multiplied with the basic production rate to get actual material production, so productivity of 0 completely disables production on that terrain type, and productivity of 100 yields the rate specified by base-production. Defaults to 100.

Table: productivity-min u m -> n

Table: productivity-max u m -> n

These tables are the lower and upper bounds on actual production after multiplying by productivity. Default to 0 and 9999, respectively.

Table: base-consumption u m -> n

This table sets the amount of materials consumed by the unit in a turn, even if it doesn't move or do anything else. Defaults to 0.

Table: hp-per-starve u m -> hp

If the unit runs out of a material that it must consume, this table specifies how many hp it will lose each turn that it is starving. If starving for several reasons, loss is max of starvation losses, not the sum. Defaults to 0.

Table: consumption-as-occupant u m -> n%

This table is the consumption by a unit of type u1 when it is an occupant, expressed as a percentage of its base-consumption. This is useful for units such as planes which always consume fuel in the air but not on the ground. Defaults to 100.


Go to the first, previous, next, last section, table of contents.