From f05f6179c4fb219a177c34e34f2044d5bc3ea4cd Mon Sep 17 00:00:00 2001 From: DaanV2 Date: Wed, 9 Feb 2022 13:33:20 +0100 Subject: [PATCH] Updated interact --- source/behavior/entities/format/components/interact.json | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/source/behavior/entities/format/components/interact.json b/source/behavior/entities/format/components/interact.json index dd1add77..23528e6b 100644 --- a/source/behavior/entities/format/components/interact.json +++ b/source/behavior/entities/format/components/interact.json @@ -4,7 +4,7 @@ "title": "Interact", "description": "Defines interactions with this entity.", "additionalProperties": false, - "examples": [{ "interactions": [] }], + "examples": [{ "interactions": [{}] }], "definitions": { "interaction_spec": { "type": "object", @@ -30,6 +30,12 @@ "description": "Time in seconds before this entity can be interacted with again.", "title": "Cooldown" }, + "health_amount": { + "type": "number", + "default": 0, + "description": "Amount of health to add to the entity upon successful interaction.", + "title": "Health Amount" + }, "hurt_item": { "type": "integer", "default": 0,