productionKit.package
- ..
- .metadata242 B
- README.md1.0 KB
- schema.yaml437 B
README.md
resource (productionKit contract)
One thing a town makes, stores and uses: wheat, wood, planks, power, soldiers, or a currency buildings pay out (coins). Add a .data asset bound to productionKit.resource anywhere in a world and productionKit finds it by itself.
| Field | Meaning |
|---|---|
id | The name code and building recipes use ("planks"). |
name | What players read. |
icon | A short glyph used where no drawn icon exists. |
color | Accent colour for badges, bars and floating numbers. |
cap | How much a town keeps before warehouses raise it. |
uncapped | No limit at all (units a barracks trains). |
currency | An economyKit currency id: amounts made are paid into players' wallets instead of stored (coins). |
order | Position in the stock bar (lower first). |
tags | Free words (food, raw, goods, units). |
contract: productionKit.resource
values: { id: stone, name: "Stone", color: "#a0a0a0", cap: 80, order: 9, tags: [raw] }