diff --git a/app/imports/ui/properties/viewers/ActionViewer.vue b/app/imports/ui/properties/viewers/ActionViewer.vue
index ce094084..57d64481 100644
--- a/app/imports/ui/properties/viewers/ActionViewer.vue
+++ b/app/imports/ui/properties/viewers/ActionViewer.vue
@@ -1,118 +1,113 @@
-
-
-
- {{ model.actionType }}
-
-
-
-
+
-
- {{ rollBonus }}
-
-
-
-
- {{ model.rollBonus && model.rollBonus.value }}
- to hit
-
-
-
- {{ usesLeft }}/{{ model.uses.value }} uses
-
+
+
+
+
+
+
+
+
+ {{ usesLeft }}/{{ model.uses.value }}
+
+
+ Reset
+
+
{{ model.uses.calculation }}
-
- uses
-
-
- {{ reset }}
-
-
- Reset
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
- Resources
-
-
-
-
-
-
+
+
-
-
+
@@ -142,6 +137,14 @@ export default {
},
data(){return {
doActionLoading: false,
+ actionTypes: {
+ action: 'Action',
+ bonus: 'Bonus action',
+ attack: 'Attack action',
+ reaction: 'Reaction',
+ free: 'Free action',
+ long: 'Long action',
+ },
}},
computed: {
reset(){
@@ -154,8 +157,11 @@ export default {
return undefined;
},
rollBonus(){
- if (!this.attack || !this.model.rollBonus) return;
- return numberToSignedString(this.model.rollBonus.value);
+ if (
+ !this.model.attackRoll ||
+ !isFinite(this.model.attackRoll.value)
+ ) return;
+ return numberToSignedString(this.model.attackRoll.value);
},
rollBonusTooLong(){
return this.rollBonus && this.rollBonus.length > 3;
diff --git a/app/imports/ui/properties/viewers/AttributeViewer.vue b/app/imports/ui/properties/viewers/AttributeViewer.vue
index c90be210..7dbc4e71 100644
--- a/app/imports/ui/properties/viewers/AttributeViewer.vue
+++ b/app/imports/ui/properties/viewers/AttributeViewer.vue
@@ -103,7 +103,7 @@
@@ -113,7 +113,7 @@
:cols="{col: 12}"
name="Effects"
>
-
+
-
+
+
+