Fix: Surencombrement toujours calculé

Sur de vieux personnages, le sur-encombrement stocké pouvait
être affiché (et incorrect).
This commit is contained in:
Vincent Vandemeulebrouck
2022-12-17 17:49:11 +01:00
parent c9dc847440
commit 80a904e533
4 changed files with 2 additions and 16 deletions

View File

@ -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;