+
-
+ app
+ clipped-left
+ :color="character.color || 'secondary'"
+ :dark="isDarkColor(character.color || theme.primary)"
+ >
+
menu
- {{character.name}}
-
+
+ {{ character.name }}
+
+
refresh
-
-
-
- more_vert
-
-
-
-
-
- delete Delete
-
-
-
-
- create Edit details
-
-
-
-
- share Sharing
-
-
-
-
-
-
- Stats
-
-
- Features
-
-
- Inventory
-
-
- Spells
-
-
- Persona
-
-
- Tree
-
-
+
+
+
+ more_vert
+
+
+
+
+
+ delete Delete
+
+
+
+
+ create Edit details
+
+
+
+
+ share Sharing
+
+
+
+
+
+
+ Stats
+
+
+ Features
+
+
+ Inventory
+
+
+ Spells
+
+
+ Persona
+
+
+ Tree
+
+
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
@@ -94,7 +117,7 @@
import Creatures from '/imports/api/creature/Creatures.js';
import removeCreature from '/imports/api/creature/removeCreature.js';
import isDarkColor from '/imports/ui/utility/isDarkColor.js';
- import { mapMutations } from "vuex";
+ import { mapMutations } from 'vuex';
import { theme } from '/imports/ui/theme.js';
import StatsTab from '/imports/ui/creature/character/characterSheetTabs/StatsTab.vue';
import FeaturesTab from '/imports/ui/creature/character/characterSheetTabs/FeaturesTab.vue';
@@ -105,10 +128,6 @@
import { recomputeCreature } from '/imports/api/creature/computation/recomputeCreature.js';
export default {
- props: {
- showMenuButton: Boolean,
- creatureId: String,
- },
components: {
StatsTab,
FeaturesTab,
@@ -117,13 +136,20 @@
PersonaTab,
TreeTab,
},
+ props: {
+ showMenuButton: Boolean,
+ creatureId: {
+ type: String,
+ required: true,
+ },
+ },
data(){return {
theme,
tab: 0,
}},
methods: {
...mapMutations([
- "toggleDrawer",
+ 'toggleDrawer',
]),
recompute(charId){
recomputeCreature.call({charId});
@@ -160,7 +186,7 @@
},
callback(confirmation){
if(!confirmation) return;
- removeCreature.call({charId: that.creatureId}, (error, result) => {
+ removeCreature.call({charId: that.creatureId}, (error) => {
if (error) {
console.error(error);
} else {
@@ -174,7 +200,7 @@
},
meteor: {
$subscribe: {
- 'singleCharacter'(){
+ 'singleCharacter'(){
return [this.creatureId];
},
},
@@ -182,6 +208,9 @@
return Creatures.findOne(this.creatureId) || {};
},
},
+ provide: {
+ creature: this.character,
+ }
}
diff --git a/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue b/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue
index 752b4433..740fabf4 100644
--- a/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue
+++ b/app/imports/ui/creature/character/characterSheetTabs/StatsTab.vue
@@ -1,130 +1,172 @@
-
+
+
+
+
-
-
-
+
+
-
+
-
+
-
+
-
+
+
+
+ Hit Dice
+
+
+ incrementChange(hitDie._id, e)"
+ />
+
+
+
+
-
+
+
+
+ Saving Throws
+
+
+
+
-
-
-
- Hit Dice
-
-
- incrementChange(hitDie._id, e)"
- />
-
-
-
-
+
+
+
+ Skills
+
+
+
+
-
-
-
- Saving Throws
-
-
-
-
+
+ incrementChange(resource._id, e)"
+ />
+
-
-
-
- Skills
-
-
-
-
+
+
+
+ Spell Slots
+ incrementChange(spellSlot._id, e)"
+ />
+
+
+
-
- incrementChange(resource._id, e)"
- />
-
-
-
-
-
- Spell Slots
- incrementChange(spellSlot._id, e)"
- />
-
-
-
-
-
+
+
+
+
+
diff --git a/app/imports/ui/properties/components/attributes/AbilityListTile.vue b/app/imports/ui/properties/components/attributes/AbilityListTile.vue
index 60ed39e4..373e5b2a 100644
--- a/app/imports/ui/properties/components/attributes/AbilityListTile.vue
+++ b/app/imports/ui/properties/components/attributes/AbilityListTile.vue
@@ -1,22 +1,23 @@
-
+
+
+
+ {{ numberToSignedString(mod) }}
+
+
+ {{ value }}
+
+
-
-
- {{numberToSignedString(mod)}}
-
-
- {{value}}
-
-
-
-
-
- {{name}}
-
-
-
-
+
+
+ {{ name }}
+
+
+
diff --git a/app/imports/ui/properties/forms/SpellForm.vue b/app/imports/ui/properties/forms/SpellForm.vue
index cb6ef362..44587b6b 100644
--- a/app/imports/ui/properties/forms/SpellForm.vue
+++ b/app/imports/ui/properties/forms/SpellForm.vue
@@ -100,30 +100,42 @@
:debounce-time="debounceTime"
@change="(value, ack) => $emit('change', {path: ['description'], value, ack})"
/>
-
- $emit('change', {path: ['spellLists'], value})"
- />
-
+
+
+ $emit('change', {path: ['spellLists'], value})"
+ />
+
+
+
+
+