Continued work on UI viewers

This commit is contained in:
Stefan Zermatten
2021-10-18 13:46:51 +02:00
parent 417ff6e210
commit d6be0ae9f4
11 changed files with 107 additions and 53 deletions

View File

@@ -10,11 +10,19 @@
<div
class="text-no-wrap text-truncate"
>
<span v-if="amount < 0">+</span>
{{ absoluteAmount }} {{ model.stat }}
<span v-if="typeof absoluteAmount === 'string' || absoluteAmount >= 0">
damage
</span>
<template v-if="model.amount && model.amount.calculation">
<span v-if="amount < 0">+</span>
{{ absoluteAmount }} {{ model.stat }}
<span v-if="typeof absoluteAmount === 'string' || amount >= 0">
damage
</span>
<span v-if="model.target === 'self'">
to self
</span>
</template>
<template v-else>
{{ model.stat || 'Attribute' }} damage
</template>
</div>
</div>
</template>