Official modding guide

Home / Data Files

buildingCategoriesInfo.json

The buildingUpgradesInfo.json file contains a list of building upgrades to be added to the game. The structure of this file contains an array of objects in JSON format. These objects must have the following keys:

Additionally, the following keys are optional:

Lastly, an upgrade object can have keys in it to specify how much it costs. These keys correspond to the ids of the materials used to purchase/build it, so modded materials work as keys. If unspecified, they default to 0. The built in ones are as follows:

buildingUpgradesInfo.json can contain any number of upgrades in it. Specifying a className that already exists will overwrite the properties of that upgrade.

Here's an example of a possible buildingUpgradesInfo.json:

[
	{
		"displayName": "Magic",
		"description": "Build magical buildings to generate mana.",
		"name": "magic",
		"image": "spr_icon_magic"
	},
	{
		"displayName": "Alchemy",
		"description": "Conduct research and transform materials.",
		"name": "alchemy",
		"image": "spr_icon_potion"
	}
]

GitHub repositoryOfficial modding guide