diff --git a/source/behavior/entities/format/components/attack.json b/source/behavior/entities/format/components/attack.json index 4aef8731..57a27918 100644 --- a/source/behavior/entities/format/components/attack.json +++ b/source/behavior/entities/format/components/attack.json @@ -7,9 +7,18 @@ "required": ["damage"], "properties": { "damage": { - "description": "Range of the random amount of damage the melee attack deals. A negative value can heal the entity instead of hurting it.", - "$ref": "../types/range_number_type.json", - "title": "Damage" + "title": "Damage", + "oneOf": [ + { + "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": { "type": "string", @@ -24,10 +33,5 @@ "title": "Effect Duration" } }, - "examples": [ - { - "effect_name": "example", - "effect_duration": 1 - } - ] + "examples": [{ "damage": 0 }, { "damage": 0, "effect_name": "example", "effect_duration": 1 }] }