Why is the buildings property(per cell) an array, if there can only be one building on a cell?

In the state.json file, the buildings per cell are stored as an array:


{
“x”: 1,
“y”: 0,
“buildings”: [
{
“health”: 20,
“constructionTimeLeft”: -1,
“price”: 30,
“weaponDamage”: 0,
“weaponSpeed”: 0,
“weaponCooldownTimeLeft”: 0,
“weaponCooldownPeriod”: 0,
“destroyMultiplier”: 1,
“constructionScore”: 1,
“energyGeneratedPerTurn”: 0,
“buildingType”: “DEFENSE”,
“x”: 1,
“y”: 0,
“playerType”: “A”
}
],
“missiles”: [],
“cellOwner”: “A”
}

If I understand correctly, there can only ever be one building on a cell a time.

Just want to make sure I’m not missing anything important.

It may be used in future updates, last year they added a few extra rules and wepon types. Maybe that later you can add a sheild type building onto a attack building that gives some protection but less than the defence tower? This is just my theory.

Hi @Storm,

@Kortgat is correct. This is to keep our options open for future updates and implementations of those updates. You are not missing anything at this stage in the game, one cell will only ever have one building as the rules currently stand.

This topic was automatically closed after 42 hours. New replies are no longer allowed.