mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-26 22:57:00 +02:00
0cf969d508
- a lot of changes in configs; - - update to creature format - abilities are now json structure - - multiple bugfixes revealed by validation - made schemas a bit more strict - creatures data can be replaced via mods - it is possible to validate vcmi configs using schemas (disabled)
103 lines
1.8 KiB
JSON
103 lines
1.8 KiB
JSON
{
|
|
"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"],
|
|
|
|
"additionalProperties" : false,
|
|
"properties":{
|
|
"addInfo": {
|
|
"anyOf" : [
|
|
{ "type" : "string" },
|
|
{ "type" : "number" }
|
|
],
|
|
"description": "addInfo",
|
|
},
|
|
"description": {
|
|
"type":"string",
|
|
"description": "description",
|
|
},
|
|
"duration": {
|
|
"type":"string",
|
|
"description": "duration",
|
|
},
|
|
"effectRange": {
|
|
"type":"string",
|
|
"description": "effectRange",
|
|
},
|
|
"limiters": {
|
|
"type":"array",
|
|
"description": "limiters",
|
|
"items": {
|
|
"oneOf" : [
|
|
{
|
|
"type":"object",
|
|
"additionalProperties" : false,
|
|
"properties" : {
|
|
"parameters": {
|
|
"type":"array",
|
|
"description" : "parameters",
|
|
"additionalItems": true
|
|
},
|
|
"type": {
|
|
"type":"string",
|
|
"description": "type",
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type" : "string"
|
|
}
|
|
]
|
|
}
|
|
},
|
|
"propagator": {
|
|
"description": "propagator",
|
|
"anyOf" : [
|
|
{
|
|
"type" : "string"
|
|
},
|
|
{
|
|
"type":"array",
|
|
"items": {
|
|
"type":"string",
|
|
"description": "0",
|
|
}
|
|
}
|
|
],
|
|
},
|
|
"sourceID": {
|
|
"type":"number",
|
|
"description": "sourceID",
|
|
},
|
|
"sourceType": {
|
|
"type":"string",
|
|
"description": "sourceType",
|
|
},
|
|
"subtype": {
|
|
"anyOf" : [
|
|
{ "type" : "string" },
|
|
{ "type" : "number" }
|
|
],
|
|
"description": "subtype",
|
|
},
|
|
"turns": {
|
|
"type":"number",
|
|
"description": "turns",
|
|
},
|
|
"type": {
|
|
"type":"string",
|
|
"description": "type",
|
|
},
|
|
"val": {
|
|
"type":"number",
|
|
"description": "val",
|
|
},
|
|
"valueType": {
|
|
"type":"string",
|
|
"description": "valueType",
|
|
}
|
|
}
|
|
}
|