2013-04-02 20:06:43 +03:00
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"$schema": "http://json-schema.org/draft-04/schema",
|
|
|
|
"title" : "VCMI bonus system format",
|
|
|
|
"description" : "Subsection of several formats, used to add generic bonuses to objects",
|
|
|
|
"required": ["type"],
|
2013-04-11 22:24:14 +03:00
|
|
|
|
|
|
|
"additionalProperties" : false,
|
2013-04-02 20:06:43 +03:00
|
|
|
"properties":{
|
|
|
|
"addInfo": {
|
|
|
|
"anyOf" : [
|
|
|
|
{ "type" : "string" },
|
|
|
|
{ "type" : "number" }
|
|
|
|
],
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "addInfo"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"description": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "description"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"duration": {
|
2014-03-01 21:42:31 +03:00
|
|
|
"anyOf" : [
|
|
|
|
{ "type": "string"},
|
|
|
|
{ "type": "array", "items": {"type": "string"} }
|
|
|
|
],
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "duration"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"effectRange": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "effectRange"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"limiters": {
|
|
|
|
"type":"array",
|
|
|
|
"description": "limiters",
|
|
|
|
"items": {
|
2013-04-11 22:24:14 +03:00
|
|
|
"oneOf" : [
|
|
|
|
{
|
|
|
|
"type":"object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
|
|
"parameters": {
|
|
|
|
"type":"array",
|
|
|
|
"description" : "parameters",
|
|
|
|
"additionalItems": true
|
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "type"
|
2013-04-11 22:24:14 +03:00
|
|
|
}
|
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2013-04-11 22:24:14 +03:00
|
|
|
{
|
|
|
|
"type" : "string"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
2013-04-11 22:24:14 +03:00
|
|
|
]
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"propagator": {
|
|
|
|
"description": "propagator",
|
|
|
|
"anyOf" : [
|
|
|
|
{
|
|
|
|
"type" : "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type":"array",
|
|
|
|
"items": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "0"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
2013-08-20 22:32:21 +03:00
|
|
|
]
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2017-09-11 02:36:02 +02:00
|
|
|
"updater" : {
|
2017-09-19 00:08:28 +02:00
|
|
|
"anyOf" : [
|
|
|
|
{
|
|
|
|
"type" : "string"
|
2017-09-11 02:36:02 +02:00
|
|
|
},
|
2017-09-19 00:08:28 +02:00
|
|
|
{
|
|
|
|
"description" : "updater",
|
|
|
|
"type" : "object",
|
|
|
|
"required" : ["type", "parameters"],
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
|
|
"type" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "type"
|
|
|
|
},
|
|
|
|
"parameters": {
|
|
|
|
"type" : "array",
|
|
|
|
"description" : "parameters",
|
|
|
|
"additionalItems" : true
|
|
|
|
}
|
|
|
|
}
|
2017-09-11 02:36:02 +02:00
|
|
|
}
|
2017-09-19 00:08:28 +02:00
|
|
|
]
|
2017-09-11 02:36:02 +02:00
|
|
|
},
|
2013-04-02 20:06:43 +03:00
|
|
|
"sourceID": {
|
|
|
|
"type":"number",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "sourceID"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"sourceType": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "sourceType"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"subtype": {
|
|
|
|
"anyOf" : [
|
|
|
|
{ "type" : "string" },
|
|
|
|
{ "type" : "number" }
|
|
|
|
],
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "subtype"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"turns": {
|
|
|
|
"type":"number",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "turns"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"type": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "type"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"val": {
|
|
|
|
"type":"number",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "val"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
|
|
|
"valueType": {
|
|
|
|
"type":"string",
|
2013-08-20 22:32:21 +03:00
|
|
|
"description": "valueType"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|