diff --git a/rpg-docs/client/views/character/inventory/inventory.js b/rpg-docs/client/views/character/inventory/inventory.js index 58e70ea2..cde203fa 100644 --- a/rpg-docs/client/views/character/inventory/inventory.js +++ b/rpg-docs/client/views/character/inventory/inventory.js @@ -44,6 +44,12 @@ Template.inventory.helpers({ ).forEach(function(item){ worth += item.totalValue(); }); + Containers.find( + {charId: this._id}, + {fields: {value : 1}} + ).forEach(function(container) { + if(container.value) worth += container.value; + }) return worth; }, weightCarried: function(){