| 121 | ===== resources ===== |
| 122 | [wiki:JSON] data files specifying resources that can be gathered, traded and so forth (food, wood, ...).[[BR]] |
| 123 | The unit- and structure templates may only contain resources that are specified here.[[BR]] |
| 124 | In order to add a resource, a new icon must be specified in `setup_resources.xml`.[[BR]] |
| 125 | As of Alpha 21, the subtypes are only used to distinguish gatherrates. There must be at least one subtype per resource.[[BR]] |
| 126 | The `order` attribute specifies in which order the resources will be shown in the GUI.[[BR]] |
| 127 | The `truePrice` determines whether how much the resource is worth in comparison to the other resources (see also the explanation in `Barter.js`).[[BR]] |
| 128 | [[BR]] |
| 129 | The `aiAnalysisInfluenceGroup` determines whether and how the AI considers the resource for civic center and dropsite positioning:[[BR]] |
| 130 | * `0`: The resource is not considered at all. |
| 131 | * `1`: The resource is abundant but usually with a small amount each (like wood). |
| 132 | * `2`: For resources which are sparse but wich large amount each (as stone and metal). |
| 133 | |