Unciv/docs/Modders/schemas/techs.json
2023-10-04 21:49:26 +03:00

59 lines
2.5 KiB
JSON

{
"$schema": "http://json-schema.org/draft-07/schema",
"type": "array",
"items": {
"type": "object",
"properties": {
"columnNumber": {
"type": "integer",
"minimum": 0,
"description": "The number of this column in the techs matrix - 0 being the leftmost column"
},
"era": { "type": "string" },
"techCost": { "type": "integer" },
"buildingCost": { "type": "integer" },
"wonderCost": { "type": "integer" },
"techs": {
"type": "array",
"items": {
"type": "object",
"properties": {
"name": { "type": "string" },
"row": {
"type": "integer",
"minimum": 1,
"description": "The row, within the column, where this tech appears - 1 being the topmost tech"
},
"cost": {
"type": "integer",
"description": "Science cost of this tech - overrides the column techCost"
},
"uniques": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/uniques.json" },
"prerequisites": {
"type": "array",
"items": { "type": "string" },
"description": "The names of techs which must be researched before this tech can be researched",
"uniqueItems": true
},
"civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" },
"quote": {
"type": "string",
"description": "The quote that is displayed when you have researched the tech - flavor text"
}
},
"required": ["name", "row"],
"additionalProperties": false
}
},
"uniques": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/uniques.json" },
"civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" }
},
"required": [
"columnNumber", "era"
],
"additionalProperties": false
}
}