forked from public/foundryvtt-reve-de-dragon
Fix: Surencombrement toujours calculé
Sur de vieux personnages, le sur-encombrement stocké pouvait être affiché (et incorrect).
This commit is contained in:
@ -1385,9 +1385,6 @@ export class RdDActor extends Actor {
|
||||
if (!this.pack) {
|
||||
await this.computeMalusArmure();
|
||||
this.encTotal = this.items.map(it => it.getEncTotal()).reduce(Misc.sum(), 0);
|
||||
if (!this.isVehicule()) {
|
||||
this.system.compteurs.surenc.value = this.computeMalusSurEncombrement();
|
||||
}
|
||||
return this.encTotal;
|
||||
}
|
||||
return 0;
|
||||
|
Reference in New Issue
Block a user