Updated
This commit is contained in:
@@ -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
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user