From 7d78709c5246ceab634f3aea588370628986bae9 Mon Sep 17 00:00:00 2001 From: Xterionix <72647213+Xterionix@users.noreply.github.com> Date: Tue, 20 Feb 2024 13:18:09 +0500 Subject: [PATCH] Update timer flag component (#217) * - Add min to health * - Update timer flag to match sniffer.json --- .../entities/format/behaviors/timer_flag.json | 36 ++++++++++++++++--- 1 file changed, 32 insertions(+), 4 deletions(-) diff --git a/source/behavior/entities/format/behaviors/timer_flag.json b/source/behavior/entities/format/behaviors/timer_flag.json index 09ea4675..1cadc464 100644 --- a/source/behavior/entities/format/behaviors/timer_flag.json +++ b/source/behavior/entities/format/behaviors/timer_flag.json @@ -5,18 +5,46 @@ "type": "object", "additionalProperties": false, "properties": { + "priority": { "$ref": "types/priority.json" }, "cooldown_range": { "title": "Cooldown Range", - "$ref": "../../../../general/vectors/number2.json", - "default": [10.0, 10.0], + "anyOf": [ + { + "type": "number", + "minimum": 0 + }, + { + "$ref": "../../../../general/vectors/number2.json", + "default": [10.0, 10.0] + } + ], "description": "Goal cooldown range in seconds." }, "duration_range": { "title": "Duration Range", - "$ref": "../../../../general/vectors/number2.json", - "default": [2.0, 2.0], + "anyOf": [ + { + "type": "number", + "minimum": 0 + }, + { + "$ref": "../../../../general/vectors/number2.json", + "default": [2.0, 2.0] + } + ], "description": "Goal duration range in seconds." }, + "control_flags": { + "type": "array", + "uniqueItems": true, + "minItems": 1, + "maxItems": 2, + "items": { + "enum": ["move", "look"] + }, + "title": "Control Flags", + "description": "UNDOCUMENTED" + }, "on_end": { "title": "On End", "$ref": "../types/trigger.json",