Fix my erroneous reduce
This commit is contained in:
parent
83d0bad21f
commit
cf109a6ed1
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ export class PlayerSheetv2 extends GenericActorSheet {
|
||||||
get #inventoryCapacity() {
|
get #inventoryCapacity() {
|
||||||
return {
|
return {
|
||||||
used: this.actor.items
|
used: this.actor.items
|
||||||
.reduce((sum, i) => sum + i.system.uses_inventory_slot ? i.system.quantity : 0, 0),
|
.reduce((sum, i) => sum + (i.system.uses_inventory_slot ? i.system.quantity : 0), 0),
|
||||||
max: this.actor.system.inventory_slots,
|
max: this.actor.system.inventory_slots,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue