Affichage niveau min necessaire #188

This commit is contained in:
2021-05-28 09:12:18 +02:00
parent be1ad028a7
commit f22622710a
3 changed files with 18 additions and 0 deletions

View File

@ -105,6 +105,8 @@ export class RdDRollResolutionTable extends Dialog {
this.updateRollResult();
});
}
/* -------------------------------------------- */
async updateRollResult() {
let rollData = this.rollData;
rollData.caracValue = parseInt(rollData.selectedCarac.value)
@ -127,6 +129,7 @@ export class RdDRollResolutionTable extends Dialog {
return diffLibre + diffConditions;
}
/* -------------------------------------------- */
_computeDiffLibre(rollData) {
return Misc.toInt(rollData.diffLibre);
}