mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-02 09:02:03 +02:00
58 lines
1.2 KiB
JSON
58 lines
1.2 KiB
JSON
{
|
|
|
|
"type" : "object",
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI skill format",
|
|
"description" : "Format used to replace bonuses provided by secondary skills in VCMI",
|
|
|
|
"definitions" : {
|
|
|
|
"skillBonus" : {
|
|
"type" : "object",
|
|
"description" : "Set of bonuses provided by skill at given level",
|
|
"required" : ["description", "effects"],
|
|
"properties" : {
|
|
"description" : {
|
|
"type" : "string",
|
|
"description" : "localizable description"
|
|
},
|
|
"effects" : {
|
|
"type" : "object",
|
|
"additionalProperties" : {
|
|
"$ref" : "vcmi:bonus"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
},
|
|
|
|
"required" : ["name", "basic", "advanced", "expert"],
|
|
|
|
"properties" : {
|
|
"index" : {
|
|
"type": "number",
|
|
"description": "numeric id of skill, required for existing skills"
|
|
},
|
|
"name" : {
|
|
"type": "string",
|
|
"description": "localizable skill name"
|
|
},
|
|
"base" : {
|
|
"type" : "object",
|
|
"description" : "will be merged with all levels",
|
|
"additionalProperties" : true
|
|
},
|
|
"basic" : {
|
|
"$ref" : "#/definitions/skillBonus"
|
|
},
|
|
"advanced" : {
|
|
"$ref" : "#/definitions/skillBonus"
|
|
},
|
|
"expert" : {
|
|
"$ref" : "#/definitions/skillBonus"
|
|
}
|
|
}
|
|
}
|