Effects targeting calculations by tag now work in the engine and actions

This commit is contained in:
Stefan Zermatten
2022-02-15 15:59:41 +02:00
parent e0f621cc44
commit 378da71f5d
19 changed files with 454 additions and 98 deletions

View File

@@ -10,6 +10,7 @@
<smart-select
label="Operation"
append-icon="mdi-menu-down"
:disabled="model.targetByTags"
:hint="operationHint"
:error-messages="errors.operation"
:menu-props="{transition: 'slide-y-transition', lazy: true}"
@@ -192,6 +193,7 @@
displayedIcon: 'add',
iconClass: '',
addExtraTagsLoading: false,
oldOperation: undefined,
operations: [
{value: 'base', text: 'Base Value'},
{value: 'add', text: 'Add'},
@@ -274,8 +276,15 @@
changeTargetByTags(value){
if(value === 'stats'){
this.$emit('change', {path: ['targetByTags'], value: undefined});
if (this.oldOperation && this.oldOperation !== this.model.operation){
this.$emit('change', {path: ['operation'], value: this.oldOperation});
}
} else if (value === 'tags'){
this.$emit('change', {path: ['targetByTags'], value: true});
if (this.model.operation !== 'add'){
this.oldOperation = this.model.operation;
this.$emit('change', {path: ['operation'], value: 'add'});
}
}
},
addExtraTags(){