From 5662ce36667a3aea1b6543e3289ac560a2d7909e Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 25 Jul 2019 14:04:36 +0200 Subject: [PATCH] Added tags to actions --- app/imports/api/creature/properties/Actions.js | 9 +++++++++ app/imports/ui/forms/ActionForm.vue | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/app/imports/api/creature/properties/Actions.js b/app/imports/api/creature/properties/Actions.js index f39c4885..292f5637 100644 --- a/app/imports/api/creature/properties/Actions.js +++ b/app/imports/api/creature/properties/Actions.js @@ -47,6 +47,15 @@ let ActionSchema = schema({ 'multipleTargets', ], }, + // Effects can apply to this tag specifically + // Ranged spell attack, Ranged weapon attack, etc. + tags: { + type: Array, + defaultValue: [], + }, + 'tags.$': { + type: String, + }, // Adjustments applied when taking this action // Ideally, if these adjustments can't be made, the action should be unusable adjustments: { diff --git a/app/imports/ui/forms/ActionForm.vue b/app/imports/ui/forms/ActionForm.vue index 160f2358..49fcee2b 100644 --- a/app/imports/ui/forms/ActionForm.vue +++ b/app/imports/ui/forms/ActionForm.vue @@ -19,6 +19,15 @@ /> +