2022-06-28 10:05:30 +02:00
|
|
|
{
|
2023-05-19 20:04:31 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2022-06-28 10:05:30 +02:00
|
|
|
"title" : "VCMI battlefield format",
|
2022-09-15 10:06:54 +02:00
|
|
|
"description" : "Format used to define new battlefields in VCMI",
|
2022-06-28 10:05:30 +02:00
|
|
|
"required" : [ "graphics" ],
|
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:04:31 +02:00
|
|
|
"properties" : {
|
|
|
|
"name" : {
|
|
|
|
"type" : "string",
|
2023-09-26 12:22:36 +02:00
|
|
|
"description" : "Human-readable name of the battlefield"
|
2022-06-28 10:05:30 +02:00
|
|
|
},
|
2023-05-19 20:04:31 +02:00
|
|
|
"isSpecial" : {
|
|
|
|
"type" : "boolean",
|
|
|
|
"description" : "Shows if this battleground has own obstacles"
|
2022-06-28 10:05:30 +02:00
|
|
|
},
|
2023-05-19 20:23:08 +02:00
|
|
|
"bonuses": {
|
|
|
|
"type":"array",
|
2023-09-26 12:22:36 +02:00
|
|
|
"description": "List of bonuses that will affect all battles on this battlefield",
|
2023-05-19 20:23:08 +02:00
|
|
|
"items": { "$ref" : "bonus.json" }
|
|
|
|
},
|
2023-05-19 20:04:31 +02:00
|
|
|
"graphics" : {
|
|
|
|
"type" : "string",
|
2023-05-19 20:14:01 +02:00
|
|
|
"format" : "imageFile",
|
2023-09-26 12:22:36 +02:00
|
|
|
"description" : "Background image for this battlefield"
|
2022-06-28 10:05:30 +02:00
|
|
|
},
|
2024-07-15 23:46:23 +02:00
|
|
|
"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"
|
|
|
|
},
|
2023-05-19 20:04:31 +02:00
|
|
|
"impassableHexes" : {
|
|
|
|
"type" : "array",
|
2023-09-26 12:22:36 +02:00
|
|
|
"description" : "List of battle hexes that will be always blocked on this battlefield (e.g. ship to ship battles)",
|
2023-05-19 20:04:31 +02:00
|
|
|
"items" : {
|
|
|
|
"type" : "number"
|
2022-06-28 10:05:30 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|