Code: Select all
[(
"id": "Commander,"
"type":"commercial",
//...frames, price, etc ...
"upgrades": [{
"id": "Commander.upgrade,//id of upgrade
"type": "commercial",//or other type
"title": "title of upgrade",
"text": "text describing upgrade.",
"frames": [],//if upgrade looks the same
"price": 7000,//of upgrade
"monthly price": 200,//added to Commander price
"influence park": 39,//added
"influence level1": 50,,//added
"influence lev2": 50,,//added
"power": -100,,//added
"water": -200,,//added
"level": 3
}//,you could have other upgrades here
],
"fun": [
{
"condition": {
"type": "upgrade",
"id": "Commander.upgrade",
"x": 0,
"y": 0//check here if an upgrade was done
},
"actions": [{
"type": "remove",
"x": 0,
"y": 0
},
{
"type": "build",
"id": "ABab" //this has to be same size as Commander
}
]
}
]
}]