Updated tech schema to answer modder questions

This commit is contained in:
Yair Morgenstern
2023-10-04 21:49:26 +03:00
parent 4e8b454284
commit 701b8c3a52

View File

@ -4,7 +4,11 @@
"items": {
"type": "object",
"properties": {
"columnNumber": { "type": "integer" },
"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" },
@ -15,7 +19,11 @@
"type": "object",
"properties": {
"name": { "type": "string" },
"row": { "type": "integer" },
"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"
@ -24,10 +32,14 @@
"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" }
"quote": {
"type": "string",
"description": "The quote that is displayed when you have researched the tech - flavor text"
}
},
"required": ["name", "row"],
"additionalProperties": false