Skip to content

UPGRADE#

Used to specify a required building upgrade for the requirement to be fulfilled.

Warning

This only works in the context of the building that has the upgrade. As such, building A cannot require building B to have an upgrade.

As a workaround, you may use custom conditions with fun variables.

Example#

The following example requires the current building to have $building_upgrade_00 upgrade.

"requirements": [
  {
    "type": "UPGRADE",
    "id": "$building_upgrade_00"
  }
]

Attributes#

hide if fulfilled#

Type: boolean

Whether to hide the requirement text if the requirement was fulfilled.

By default, the value will be false.

hide if not fulfilled#

Type: boolean

Whether to hide the requirement text if the requirement was not fulfilled.

By default, the value will be false.

id#

Type: string

ID of the current building upgrade.

invert#

Type: boolean

By default, the value will be false.