From b1feb126df9a0cb23f851958b3479833eb63815b Mon Sep 17 00:00:00 2001 From: Stefan Zermatten Date: Thu, 24 Feb 2022 02:39:39 +0200 Subject: [PATCH] Fixed inventory weight and value fields --- .../character/characterSheetTabs/InventoryTab.vue | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/imports/ui/creature/character/characterSheetTabs/InventoryTab.vue b/app/imports/ui/creature/character/characterSheetTabs/InventoryTab.vue index 2b75908d..79f7d833 100644 --- a/app/imports/ui/creature/character/characterSheetTabs/InventoryTab.vue +++ b/app/imports/ui/creature/character/characterSheetTabs/InventoryTab.vue @@ -31,12 +31,12 @@ - + $vuetify.icons.spell @@ -47,7 +47,7 @@ - {{ creature.denormalizedStats.itemsAttuned }} + {{ creature.variables.itemsAttuned.value }} @@ -140,7 +140,7 @@ export default { creature(){ return Creatures.findOne(this.creatureId, {fields: { color: 1, - denormalizedStats: 1, + variables: 1, }}); }, containersWithoutAncestorContainers(){ @@ -210,7 +210,9 @@ export default { }, weightCarried(){ return stripFloatingPointOddities( - this.creature.denormalizedStats.weightCarried || 0 + this.creature.variables && + this.creature.variables.weightCarried && + this.creature.variables.weightCarried.value || 0 ); }, },