2013-04-02 20:06:43 +03:00
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI hero format",
|
|
|
|
"description" : "Format used to define new heroes in VCMI",
|
2013-04-22 22:51:22 +03:00
|
|
|
"required": [ "army", "class", "skills", "texts" ],
|
|
|
|
|
|
|
|
"oneOf" : [
|
|
|
|
{
|
|
|
|
"required" : [ "images" ]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"required" : [ "index" ]
|
|
|
|
}
|
|
|
|
],
|
2013-04-11 22:24:14 +03:00
|
|
|
|
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties":{
|
|
|
|
"army": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "Initial hero army when recruited in tavern",
|
|
|
|
"minItems" : 1,
|
|
|
|
"maxItems" : 3,
|
|
|
|
"items": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"required" : [ "creature", "min", "max" ],
|
|
|
|
"properties":{
|
|
|
|
"creature": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "creature"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"max": {
|
|
|
|
"type":"number",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "max",
|
|
|
|
"minimum" : 1
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"min": {
|
|
|
|
"type":"number",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "min",
|
|
|
|
"minimum" : 1
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2013-04-21 15:49:26 +03:00
|
|
|
"index" : {
|
2013-04-11 22:24:14 +03:00
|
|
|
"type" : "number",
|
|
|
|
"description" : "Private field to break things, do not use."
|
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"special": {
|
|
|
|
"type":"boolean",
|
|
|
|
"description": "Marks this object as special and not available by default"
|
2013-04-11 22:24:14 +03:00
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"class": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Hero class, e.g. knight or battleMage"
|
|
|
|
},
|
|
|
|
"female": {
|
|
|
|
"type":"boolean",
|
2013-04-22 22:51:22 +03:00
|
|
|
"description": "This hero is female (changeable via editor)"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2018-09-13 01:33:34 +02:00
|
|
|
"battleImage": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Custom def used on battle",
|
|
|
|
"format" : "defFile"
|
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"images": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"description": "images",
|
2013-04-22 22:51:22 +03:00
|
|
|
"required": [ "large", "small", "specialtyLarge", "specialtySmall" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties":{
|
|
|
|
"large": {
|
|
|
|
"type":"string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "Large version of portrait for use in hero screen",
|
|
|
|
"format" : "imageFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"small": {
|
|
|
|
"type":"string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "Small version of portrait for use on adventure map",
|
|
|
|
"format" : "imageFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"specialtyLarge": {
|
|
|
|
"type":"string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "Large image of hero specilty, used in hero screen",
|
|
|
|
"format" : "imageFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"specialtySmall": {
|
|
|
|
"type":"string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "Small image of hero specialty for use in exchange screen",
|
|
|
|
"format" : "imageFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"skills": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of skills initially known by hero",
|
|
|
|
"maxItems" : 8,
|
|
|
|
"items": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"required" : [ "level", "skill" ],
|
|
|
|
"properties":{
|
|
|
|
"level": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "level",
|
|
|
|
"enum" : [ "basic", "advanced", "expert" ]
|
|
|
|
},
|
|
|
|
"skill": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "skill"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"specialty": {
|
2023-03-05 01:07:41 +02:00
|
|
|
"type" : "object",
|
|
|
|
"description": "Description of hero specialty using bonus system",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
|
|
"base" : {
|
|
|
|
"type" : "object",
|
|
|
|
"description" : "Will be merged with all bonuses."
|
2017-09-14 00:45:54 +02:00
|
|
|
},
|
2023-03-05 01:07:41 +02:00
|
|
|
"bonuses" : {
|
2017-09-14 00:45:54 +02:00
|
|
|
"type" : "object",
|
2023-03-05 01:07:41 +02:00
|
|
|
"description" : "Set of bonuses",
|
|
|
|
"additionalProperties" : { "$ref" : "bonus.json" }
|
|
|
|
},
|
|
|
|
"creature" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Name of base creature to grant standard specialty to."
|
2017-09-14 00:45:54 +02:00
|
|
|
}
|
2023-03-05 01:07:41 +02:00
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"spellbook": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "List of starting spells, if available. This entry (even empty) will also grant spellbook",
|
|
|
|
"items": { "type":"string" }
|
|
|
|
},
|
|
|
|
"texts": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"description": "All translatable texts related to hero",
|
|
|
|
"required" : [ "biography", "name", "specialty" ],
|
|
|
|
"properties":{
|
|
|
|
"biography": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Hero biography"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Hero name"
|
|
|
|
},
|
|
|
|
"specialty": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"description": "Hero specialty information",
|
|
|
|
"required" : [ "description", "name", "tooltip" ],
|
|
|
|
"properties":{
|
|
|
|
"description": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Description visible when hovering over specialty icon"
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Name of the specialty"
|
|
|
|
},
|
|
|
|
"tooltip": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Tooltip visible on clicking icon."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|