La consommation d'alcool

est bonne pour depuis l'équipement

+ bug du à changement de vieValue -> vie
This commit is contained in:
Vincent Vandemeulebrouck
2021-05-18 01:04:27 +02:00
parent a48f76e8eb
commit 88d4c917fc
8 changed files with 144 additions and 129 deletions

View File

@ -1,4 +1,3 @@
import { RdDResolutionTable } from "./rdd-resolution-table.js";
import { Misc } from "./misc.js";
/**
@ -52,10 +51,8 @@ export class RdDRollDialogEthylisme extends Dialog {
}
async updateRollResult() {
this.rollData.finalLevel = Number(this.rollData.etat) + Number(this.rollData.forceAlcool) + this.rollData.diffNbDoses;
// Mise à jour valeurs
$("#roll-param").text(this.rollData.vie + " / " + Misc.toSignedString(this.rollData.finalLevel));
$("#roll-param").text(this.rollData.vie + " / " + Misc.toSignedString(Number(this.rollData.etat) + Number(this.rollData.forceAlcool) + this.rollData.diffNbDoses));
$(".table-resolution").remove();
}