mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-28 23:06:24 +02:00
0cf969d508
- a lot of changes in configs; - - update to creature format - abilities are now json structure - - multiple bugfixes revealed by validation - made schemas a bit more strict - creatures data can be replaced via mods - it is possible to validate vcmi configs using schemas (disabled)
53 lines
1.3 KiB
JSON
53 lines
1.3 KiB
JSON
{
|
|
"type":"object",
|
|
"additionalProperties" : false,
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
"title" : "VCMI town building format",
|
|
"description" : "Format used to define town buildings in VCMI",
|
|
"required": [ "id" ],
|
|
"properties":{
|
|
"id": {
|
|
"type":"number",
|
|
"description" : "Numeric identifier of this building"
|
|
},
|
|
"mode": {
|
|
"type":"string",
|
|
"enum" : [ "normal", "auto", "special", "grail" ],
|
|
"description" : "Mode in which this building will be built"
|
|
},
|
|
"requires": {
|
|
"type":"array",
|
|
"description" : "List of town buildings that must be built before this one",
|
|
"items": {
|
|
"type":"number"
|
|
}
|
|
},
|
|
"upgrades": {
|
|
"description" : "If this building is upgrade, identifier of base building",
|
|
"type":"number"
|
|
},
|
|
"name" : {
|
|
"description" : "Name of this building",
|
|
"type" : "string"
|
|
},
|
|
"description" : {
|
|
"description" : "Full decsription of this building",
|
|
"type" : "string"
|
|
},
|
|
"cost": {
|
|
"type":"object",
|
|
"additionalProperties" : false,
|
|
"description": "Cost to build this building",
|
|
"properties":{
|
|
"wood": { "type":"number"},
|
|
"mercury": { "type":"number"},
|
|
"ore": { "type":"number"},
|
|
"sulfur": { "type":"number"},
|
|
"crystal": { "type":"number"},
|
|
"gems": { "type":"number"},
|
|
"gold": { "type":"number"}
|
|
}
|
|
}
|
|
}
|
|
}
|