changed requiredTech to revealedBy in tileResources json schema, added deposit amounts and improvedBy

This commit is contained in:
Yair Morgenstern
2024-02-25 23:36:57 +02:00
parent 46dacd2991
commit 2d49838f13

View File

@ -12,7 +12,12 @@
},
"improvement": { "type": "string" },
"resourceType": { "enum": ["Strategic", "Luxury", "Bonus"]},
"techRequired": { "type": "string" },
"revealedBy": { "type": "string" },
"improvedBy": {
"type": "array",
"items": { "type": "string" },
"uniqueItems": true
},
"improvementStats": { "$ref": "https://raw.githubusercontent.com/yairm210/Unciv/master/docs/Modders/schemas/stats.json" },
"production": { "type": "number" },
@ -23,6 +28,9 @@
"happiness": { "type": "number" },
"faith": { "type": "number" },
"majorDepositAmount": {"$ref": "#/definitions/resourceAmount"},
"minorDepositAmount": {"$ref": "#/definitions/resourceAmount"},
"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" }
@ -30,6 +38,17 @@
"required": [
"name",
],
"additionalProperties": false
"additionalProperties": false,
"definitions": {
"resourceAmount": {
"type": "object",
"properties": {
"sparse": {"type": "number"},
"default": {"type": "number"},
"abundant": {"type": "number"}
},
"required": ["sparse","default","abundant"]
}
}
}
}