forked from public/foundryvtt-reve-de-dragon
Fix calcul encTotal
Autant le calculer depuis les objets eux-mêmes
This commit is contained in:
@ -1142,9 +1142,7 @@ export class RdDActor extends Actor {
|
||||
|
||||
/* -------------------------------------------- */
|
||||
computeEncombrement() {
|
||||
this.encTotal = this.filterItemsData(it => it.data.encombrement != undefined)
|
||||
.map(it => it.data.encTotal)
|
||||
.reduce(Misc.sum(), 0);
|
||||
this.encTotal = this.items.map(it => it.getEncTotal()).reduce(Misc.sum(), 0);
|
||||
return this.encTotal;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user