2013-04-02 20:06:43 +03:00
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI hero class format",
|
|
|
|
"description" : "Format used to define classes of heroes in VCMI",
|
|
|
|
"required" : [
|
|
|
|
"animation", "faction", "highLevelChance", "lowLevelChance",
|
2013-12-13 21:27:54 +03:00
|
|
|
"name", "primarySkills", "secondarySkills", "tavern", "defaultTavern",
|
2014-06-16 19:27:26 +03:00
|
|
|
"affinity", "commander", "mapObject"
|
2013-04-02 20:06:43 +03:00
|
|
|
],
|
2013-04-11 22:24:14 +03:00
|
|
|
|
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties":{
|
|
|
|
"animation": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"description": "Files related to hero animation",
|
2014-06-16 19:27:26 +03:00
|
|
|
"required": [ "battle" ],
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties":{
|
|
|
|
"battle": {
|
|
|
|
"type":"object",
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"description": "Hero animations for battle",
|
|
|
|
"required": [ "female", "male" ],
|
|
|
|
"properties":{
|
|
|
|
"female": {
|
|
|
|
"type":"string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "Female version",
|
|
|
|
"format" : "defFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"male": {
|
|
|
|
"type":"string",
|
2013-10-26 22:33:34 +03:00
|
|
|
"description": "Male version",
|
|
|
|
"format" : "defFile"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
2014-06-16 19:27:26 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"mapObject" : {
|
|
|
|
"properties" : {
|
|
|
|
"filters" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : { "type" : "array" }
|
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
|
|
|
"faction": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Faction this hero class belongs to"
|
|
|
|
},
|
2013-12-13 21:27:54 +03:00
|
|
|
"affinity" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "Affinity of hero class, might or magic",
|
|
|
|
"enum" : [ "might", "magic"]
|
|
|
|
},
|
|
|
|
"commander": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Identifier of creature that is used as commander by heroes"
|
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"highLevelChance": {
|
|
|
|
"type":"object",
|
|
|
|
"description": "Chance to get specific primary skill on level-up, applicable for levels starting from 10",
|
|
|
|
"additionalProperties":{
|
|
|
|
"type":"number"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"lowLevelChance": {
|
|
|
|
"type":"object",
|
|
|
|
"description": "Chance to get specific primary skill on level-up, applicable for levels less than 10",
|
|
|
|
"additionalProperties":{
|
|
|
|
"type":"number"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type":"string",
|
|
|
|
"description": "Translatable name of hero class"
|
|
|
|
},
|
|
|
|
"primarySkills": {
|
|
|
|
"type":"object",
|
|
|
|
"description": "Initial primary skills of heroes",
|
|
|
|
"additionalProperties":{
|
|
|
|
"type":"number"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"secondarySkills": {
|
|
|
|
"type":"object",
|
|
|
|
"description": "Chance to get specific secondary skill on level-up. All missing skills are considered to be banned",
|
|
|
|
"additionalProperties":{
|
|
|
|
"type":"number"
|
|
|
|
}
|
|
|
|
},
|
2013-11-03 15:07:23 +03:00
|
|
|
"defaultTavern" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "Default chance for hero to appear in tavern, used only when value vas not set in tavern field",
|
|
|
|
"minimum" : 0
|
|
|
|
},
|
|
|
|
|
2013-04-02 20:06:43 +03:00
|
|
|
"tavern": {
|
|
|
|
"type":"object",
|
|
|
|
"description": "Chance for this hero to appear in tavern of this factions. Reversed version of field \"tavern\" from town format",
|
|
|
|
"additionalProperties":{
|
2013-11-03 15:07:23 +03:00
|
|
|
"type":"number",
|
|
|
|
"minimum" : 0
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|