Added tags to actions

This commit is contained in:
Stefan Zermatten
2019-07-25 14:04:36 +02:00
parent 45e36ac3d4
commit 5662ce3666
2 changed files with 18 additions and 0 deletions

View File

@@ -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: {

View File

@@ -19,6 +19,15 @@
/>
<form-sections>
<form-section name="Advanced">
<v-combobox
label="Tags"
multiple
chips
deletable-chips
box
:value="model.tags"
@change="(value) => $emit('change', {path: ['tags'], value})"
/>
<smart-select
label="Target"
style="flex-basis: 300px;"