mirror of
https://github.com/yairm210/Unciv.git
synced 2025-07-06 00:09:23 +07:00
Added tileImprovement json schema
This commit is contained in:
@ -41,6 +41,12 @@ Tada! Now Android Studio will recognize all Buildings.json files as belonging to
|
|||||||
"*/Nations.json"
|
"*/Nations.json"
|
||||||
],
|
],
|
||||||
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/nations.json"
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/nations.json"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"fileMatch": [
|
||||||
|
"*/TileImprovements.json"
|
||||||
|
],
|
||||||
|
"url": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/tileImprovements.json"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
```
|
```
|
||||||
|
@ -18,9 +18,9 @@
|
|||||||
"civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" },
|
"civilopediaText": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/civilopediaText.json" },
|
||||||
|
|
||||||
"requiredTech": { "type": "string" },
|
"requiredTech": { "type": "string" },
|
||||||
"cost": { "type": "number" },
|
"cost": { "type": "integer" },
|
||||||
"maintenance": {
|
"maintenance": {
|
||||||
"type": "number",
|
"type": "integer",
|
||||||
"description": "Gold upkeep per turn for this building"
|
"description": "Gold upkeep per turn for this building"
|
||||||
},
|
},
|
||||||
"percentStatBonus": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/stats.json" },
|
"percentStatBonus": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/stats.json" },
|
||||||
@ -44,8 +44,8 @@
|
|||||||
"items": { "type": "string" },
|
"items": { "type": "string" },
|
||||||
"uniqueItems": true
|
"uniqueItems": true
|
||||||
},
|
},
|
||||||
"cityStrength": { "type": "number" },
|
"cityStrength": { "type": "integer" },
|
||||||
"cityHealth": { "type": "number" },
|
"cityHealth": { "type": "integer" },
|
||||||
|
|
||||||
"uniqueTo": {
|
"uniqueTo": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
38
docs/Modders/schemas/tileImprovements.json
Normal file
38
docs/Modders/schemas/tileImprovements.json
Normal file
@ -0,0 +1,38 @@
|
|||||||
|
{
|
||||||
|
"$schema": "http://json-schema.org/draft-07/schema",
|
||||||
|
"type": "array",
|
||||||
|
"items": {
|
||||||
|
"type": "object",
|
||||||
|
"properties": {
|
||||||
|
"name": { "type": "string" },
|
||||||
|
"terrainsCanBeBuiltOn": {
|
||||||
|
"type": "array",
|
||||||
|
"items": { "type": "string" },
|
||||||
|
"uniqueItems": true,
|
||||||
|
},
|
||||||
|
"turnsToBuild": { "type": "integer" },
|
||||||
|
"techRequired": { "type": "string" },
|
||||||
|
"uniqueTo": { "type": "string" },
|
||||||
|
"shortcutKey": {
|
||||||
|
"type": "string",
|
||||||
|
"maxLength": 1
|
||||||
|
},
|
||||||
|
|
||||||
|
"production": { "type": "number" },
|
||||||
|
"food": { "type": "number" },
|
||||||
|
"gold": { "type": "number" },
|
||||||
|
"science": { "type": "number" },
|
||||||
|
"culture": { "type": "number" },
|
||||||
|
"happiness": { "type": "number" },
|
||||||
|
"faith": { "type": "number" },
|
||||||
|
|
||||||
|
"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": [
|
||||||
|
"name",
|
||||||
|
],
|
||||||
|
"additionalProperties": false
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user