1
0
mirror of https://github.com/vcmi/vcmi.git synced 2024-12-14 10:12:59 +02:00
vcmi/config/schemas/battlefield.json

48 lines
1.3 KiB
JSON
Raw Normal View History

{
"type" : "object",
"$schema" : "http://json-schema.org/draft-04/schema",
"title" : "VCMI battlefield format",
"description" : "Format used to define new battlefields in VCMI",
"required" : [ "graphics" ],
"additionalProperties" : false,
"properties" : {
"name" : {
"type" : "string",
"description" : "Human-readable name of the battlefield"
},
"isSpecial" : {
"type" : "boolean",
"description" : "Shows if this battleground has own obstacles"
},
2023-05-19 20:23:08 +02:00
"bonuses": {
"type":"array",
"description": "List of bonuses that will affect all battles on this battlefield",
2023-05-19 20:23:08 +02:00
"items": { "$ref" : "bonus.json" }
},
"graphics" : {
"type" : "string",
2023-05-19 20:14:01 +02:00
"format" : "imageFile",
"description" : "Background image for this battlefield"
},
"music" :
{
"description" : "Optional, filename for custom music to play during combat on this terrain",
"type" : "string",
"format" : "musicFile"
},
"openingSound" :
{
"description" : "Optional, filename for custom sound to play during combat opening on this terrain",
"type" : "string",
"format" : "musicFile"
},
"impassableHexes" : {
"type" : "array",
"description" : "List of battle hexes that will be always blocked on this battlefield (e.g. ship to ship battles)",
"items" : {
"type" : "number"
}
}
}
}