2017-08-22 11:40:10 +02:00
|
|
|
{
|
|
|
|
|
2017-08-30 06:23:03 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2017-08-22 11:40:10 +02:00
|
|
|
|
|
|
|
"title" : "VCMI skill format",
|
|
|
|
"description" : "Format used to replace bonuses provided by secondary skills in VCMI",
|
|
|
|
|
|
|
|
"definitions" : {
|
|
|
|
|
2017-08-30 06:23:03 +02:00
|
|
|
"skillBonus" : {
|
|
|
|
"type" : "object",
|
|
|
|
"description" : "Set of bonuses provided by skill at given level",
|
2017-09-03 13:49:36 +02:00
|
|
|
"required" : ["description", "effects"],
|
2017-08-30 06:23:03 +02:00
|
|
|
"properties" : {
|
2018-03-31 07:56:40 +02:00
|
|
|
"images" : {
|
|
|
|
"type" : "object",
|
|
|
|
"description" : "skill icons of varying size",
|
|
|
|
"properties" : {
|
|
|
|
"small" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "32x32 skill icon",
|
|
|
|
"format" : "imageFile"
|
|
|
|
},
|
|
|
|
"medium" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "44x44 skill icon",
|
|
|
|
"format" : "imageFile"
|
|
|
|
},
|
|
|
|
"large" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "82x93 skill icon",
|
|
|
|
"format" : "imageFile"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
2017-08-30 06:23:03 +02:00
|
|
|
"description" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "localizable description"
|
|
|
|
},
|
|
|
|
"effects" : {
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : {
|
2018-10-30 23:30:56 +02:00
|
|
|
"$ref" : "bonus.json"
|
2017-08-30 06:23:03 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2017-08-30 10:01:09 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
},
|
2017-08-22 11:40:10 +02:00
|
|
|
|
2017-09-03 13:49:36 +02:00
|
|
|
"required" : ["name", "basic", "advanced", "expert"],
|
2017-08-22 11:40:10 +02:00
|
|
|
|
2017-08-30 10:01:09 +02:00
|
|
|
"properties" : {
|
2017-09-03 13:49:36 +02:00
|
|
|
"index" : {
|
|
|
|
"type": "number",
|
|
|
|
"description": "numeric id of skill, required for existing skills"
|
|
|
|
},
|
|
|
|
"name" : {
|
|
|
|
"type": "string",
|
|
|
|
"description": "localizable skill name"
|
|
|
|
},
|
2018-03-31 07:56:40 +02:00
|
|
|
"gainChance" : {
|
|
|
|
"description" : "Chance for the skill to be offered on level-up (heroClass may override)",
|
|
|
|
"anyOf" : [
|
|
|
|
{
|
|
|
|
"type" : "number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"required" : ["might", "magic"],
|
|
|
|
"properties" : {
|
|
|
|
"might" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "Chance for hero classes with might affinity"
|
|
|
|
},
|
|
|
|
"magic" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "Chance for hero classes with magic affinity"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
2017-08-30 10:01:09 +02:00
|
|
|
"base" : {
|
|
|
|
"type" : "object",
|
|
|
|
"description" : "will be merged with all levels",
|
|
|
|
"additionalProperties" : true
|
|
|
|
},
|
|
|
|
"basic" : {
|
|
|
|
"$ref" : "#/definitions/skillBonus"
|
|
|
|
},
|
|
|
|
"advanced" : {
|
|
|
|
"$ref" : "#/definitions/skillBonus"
|
|
|
|
},
|
|
|
|
"expert" : {
|
|
|
|
"$ref" : "#/definitions/skillBonus"
|
2017-08-30 06:23:03 +02:00
|
|
|
}
|
2017-08-22 11:40:10 +02:00
|
|
|
}
|
|
|
|
}
|