This commit is contained in:
DaanV2
2021-10-11 19:03:09 +02:00
parent 597f520dc1
commit 856ee53b38

View File

@@ -7,9 +7,18 @@
"required": ["damage"], "required": ["damage"],
"properties": { "properties": {
"damage": { "damage": {
"description": "Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it.", "title": "Damage",
"$ref": "../types/range_number_type.json", "oneOf": [
"title": "Damage" {
"type": "integer",
"default": 1,
"description": "Amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it."
},
{
"$ref": "../types/range_number_type.json",
"description": "Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it."
}
]
}, },
"effect_name": { "effect_name": {
"type": "string", "type": "string",
@@ -24,10 +33,5 @@
"title": "Effect Duration" "title": "Effect Duration"
} }
}, },
"examples": [ "examples": [{ "damage": 0 }, { "damage": 0, "effect_name": "example", "effect_duration": 1 }]
{
"effect_name": "example",
"effect_duration": 1
}
]
} }