From 8e6d4fbb89d860140e4b06af0c25f7a7aed6599a Mon Sep 17 00:00:00 2001 From: Vincent Vandemeulebrouck Date: Sun, 18 Dec 2022 22:49:17 +0100 Subject: [PATCH] Fix: la valeur de l'inventaire hors fortune La valeur de l'inventaire ne tient plus compte de la fortune --- module/actor.js | 1 + 1 file changed, 1 insertion(+) diff --git a/module/actor.js b/module/actor.js index 4dd54eed..00a2df1c 100644 --- a/module/actor.js +++ b/module/actor.js @@ -1406,6 +1406,7 @@ export class RdDActor extends Actor { /* -------------------------------------------- */ computePrixTotalEquipement() { const valeur = this.items.filter(it => it.isInventaire()) + .filter(it => !it.isMonnaie()) .map(it => it.valeurTotale()) .reduce(Misc.sum(), 0); return valeur;