2017-08-22 11:40:10 +02:00
|
|
|
{
|
|
|
|
|
|
|
|
"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":{
|
2017-08-25 03:35:02 +02:00
|
|
|
"type": "object",
|
2017-08-22 11:40:10 +02:00
|
|
|
"description": "Set of bonuses provided by skill at given level",
|
2017-08-25 03:35:02 +02:00
|
|
|
"required" : ["effects"],
|
|
|
|
"properties": {
|
|
|
|
"description": {
|
|
|
|
"type": "string",
|
|
|
|
"description": "localizable description"
|
|
|
|
},
|
|
|
|
"effects": {
|
2017-08-30 00:25:36 +02:00
|
|
|
"type": "object",
|
|
|
|
"additionalProperties" : {
|
2017-08-25 03:35:02 +02:00
|
|
|
"$ref" : "vcmi:bonus"
|
|
|
|
}
|
|
|
|
}
|
2017-08-22 11:40:10 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
|
2017-08-30 04:09:02 +02:00
|
|
|
"required" : ["basic", "advanced", "expert"],
|
2017-08-22 11:40:10 +02:00
|
|
|
|
|
|
|
"properties": {
|
2017-08-30 00:25:36 +02:00
|
|
|
"base":{
|
2017-08-30 04:09:02 +02:00
|
|
|
"type": "object",
|
|
|
|
"description": "will be merged with all levels",
|
|
|
|
"additionalProperties": true
|
2017-08-30 00:25:36 +02:00
|
|
|
},
|
2017-08-22 11:40:10 +02:00
|
|
|
"basic":{
|
|
|
|
"$ref" : "#/definitions/skillBonus"
|
|
|
|
},
|
|
|
|
"advanced":{
|
|
|
|
"$ref" : "#/definitions/skillBonus"
|
|
|
|
},
|
|
|
|
"expert":{
|
|
|
|
"$ref" : "#/definitions/skillBonus"
|
2017-08-23 14:15:33 +02:00
|
|
|
}
|
2017-08-22 11:40:10 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|