2013-04-02 20:06:43 +03:00
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "object",
|
|
|
|
"$schema" : "http://json-schema.org/draft-04/schema",
|
2013-04-02 20:06:43 +03:00
|
|
|
"title" : "VCMI bonus system format",
|
|
|
|
"description" : "Subsection of several formats, used to add generic bonuses to objects",
|
2023-05-19 20:14:01 +02:00
|
|
|
"required" : ["type"],
|
2018-04-01 13:17:34 +02:00
|
|
|
"definitions" :
|
|
|
|
{
|
|
|
|
"nestedLimiter" : {
|
|
|
|
"anyOf" : [
|
|
|
|
{
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "parameterless limiter or boolean operator at start of array"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "object",
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
|
|
"type" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "type"
|
|
|
|
},
|
|
|
|
"parameters" : {
|
|
|
|
"type" : "array",
|
|
|
|
"description" : "parameters",
|
|
|
|
"additionalItems" : true
|
2018-10-30 23:30:56 +02:00
|
|
|
}
|
2018-04-01 13:17:34 +02:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type" : "array",
|
|
|
|
"additionalItems" : {
|
|
|
|
"$ref" : "#/definitions/nestedLimiter",
|
|
|
|
"description" : "nested limiters optionally prefixed with boolean operator"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
2013-04-11 22:24:14 +03:00
|
|
|
"additionalProperties" : false,
|
2023-05-19 20:14:01 +02:00
|
|
|
"properties" : {
|
|
|
|
"type" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "type"
|
2023-05-19 20:04:31 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"subtype" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"anyOf" : [
|
|
|
|
{ "type" : "string" },
|
2023-05-19 20:04:31 +02:00
|
|
|
{ "type" : "number" }
|
2013-04-02 20:06:43 +03:00
|
|
|
],
|
2023-05-19 20:14:01 +02:00
|
|
|
"description" : "subtype"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"sourceID" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "sourceID"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"sourceType" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "sourceType"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"targetSourceType" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "targetSourceType"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"propagator" : {
|
|
|
|
"description" : "propagator",
|
2013-04-02 20:06:43 +03:00
|
|
|
"anyOf" : [
|
|
|
|
{
|
|
|
|
"type" : "string"
|
|
|
|
},
|
|
|
|
{
|
2023-05-19 20:14:01 +02:00
|
|
|
"type" : "array",
|
|
|
|
"items" : {
|
|
|
|
"type" : "string",
|
|
|
|
"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",
|
2023-03-09 12:05:47 +02:00
|
|
|
"required" : ["type", "parameters"],
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
|
|
"type" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "type"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"parameters" : {
|
2023-03-09 12:05:47 +02:00
|
|
|
"type" : "array",
|
|
|
|
"description" : "parameters",
|
|
|
|
"additionalItems" : true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"propagationUpdater" : {
|
|
|
|
"anyOf" : [
|
|
|
|
{
|
|
|
|
"type" : "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"description" : "propagationUpdater",
|
|
|
|
"type" : "object",
|
2017-09-19 00:08:28 +02:00
|
|
|
"required" : ["type", "parameters"],
|
|
|
|
"additionalProperties" : false,
|
|
|
|
"properties" : {
|
|
|
|
"type" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "type"
|
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"parameters" : {
|
2017-09-19 00:08:28 +02:00
|
|
|
"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
|
|
|
},
|
2023-05-19 20:04:31 +02:00
|
|
|
"limiters" : {
|
|
|
|
"$ref" : "#/definitions/nestedLimiter",
|
|
|
|
"description" : "limiter"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"effectRange" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "effectRange"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"val" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "val"
|
2023-02-15 21:19:35 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"valueType" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "valueType"
|
2018-03-27 09:54:58 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"addInfo" : {
|
2013-04-02 20:06:43 +03:00
|
|
|
"anyOf" : [
|
|
|
|
{ "type" : "string" },
|
2023-05-19 20:04:31 +02:00
|
|
|
{ "type" : "number" },
|
|
|
|
{
|
|
|
|
"type" : "array",
|
|
|
|
"items" : {
|
|
|
|
"anyof" : [
|
|
|
|
{ "type" : "string" },
|
|
|
|
{ "type" : "number" }
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
2013-04-02 20:06:43 +03:00
|
|
|
],
|
2023-05-19 20:14:01 +02:00
|
|
|
"description" : "addInfo"
|
2023-05-19 20:04:31 +02:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"duration" : {
|
2023-05-19 20:04:31 +02:00
|
|
|
"anyOf" : [
|
2023-05-19 20:14:01 +02:00
|
|
|
{ "type" : "string"},
|
|
|
|
{ "type" : "array", "items" : {"type" : "string"} }
|
2023-05-19 20:04:31 +02:00
|
|
|
],
|
2023-05-19 20:14:01 +02:00
|
|
|
"description" : "duration"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"turns" : {
|
|
|
|
"type" : "number",
|
|
|
|
"description" : "turns"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:04:31 +02:00
|
|
|
"stacking" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "stacking"
|
2013-04-02 20:06:43 +03:00
|
|
|
},
|
2023-05-19 20:14:01 +02:00
|
|
|
"description" : {
|
|
|
|
"type" : "string",
|
|
|
|
"description" : "description"
|
2013-04-02 20:06:43 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|