Unciv/docs/Modders/schemas/units.json

75 lines
2.3 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"unitType": { "type": "string" },
"movement": { "type": "number" },
"strength": { "type": "number" },
"rangedStrength": { "type": "number" },
"religiousStrength": { "type": "number" },
"range": { "type": "number" },
"interceptRange": { "type": "number" },
"cost": { "type": "number" },
"hurryCostModifier": { "type": "number" },
"requiredResource": { "type": "string" },
"requiredTech": { "type": "string" },
"obsoleteTech": { "type": "string" },
"upgradesTo": { "type": "string" },
"uniqueTo": { "type": "string" },
"replaces": { "type": "string" },
"uniques": { "$ref": "#/definitions/uniques" },
"promotions": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
},
"attackSound": { "type": "string" },
"replacementTextForUniques": { "type": "string" },
"civilopediaText": {
"type": "array",
"items": { "$ref": "#/definitions/civilopediaText"}
}
},
"required": [
"name", "unitType"
],
"additionalProperties": false
},
"definitions": {
"uniques": {
"type": "array",
"items": { "type": "string" }
},
"civilopediaText": {
"type": "object",
"properties": {
"text": { "type": "string" },
"link": { "type": "string" },
"icon": { "type": "string" },
"extraImage": { "type": "string" },
"imageSize": { "type": "number" },
"size": { "type": "number" },
"header": { "type": "number" },
"indent": { "type": "number" },
"padding": { "type": "number" },
"color": { "type": "string" },
"separator": { "type": "boolean" },
"starred": { "type": "boolean" },
"centered": { "type": "boolean" },
"iconCrossed": { "type": "boolean" }
}
}
}
}