diff --git a/module/rdd-roll-resolution-table.js b/module/rdd-roll-resolution-table.js index fcb456f9..9155af00 100644 --- a/module/rdd-roll-resolution-table.js +++ b/module/rdd-roll-resolution-table.js @@ -112,7 +112,7 @@ export class RdDRollResolutionTable extends Dialog { async updateRollResult() { let rollData = this.rollData; rollData.caracValue = parseInt(rollData.selectedCarac.value) - rollData.finalLevel = this._computeFinalLevel(rollData); + rollData.finalLevel = Misc.toInt(rollData.diffConditions) + Misc.toInt(rollData.diffLibre); const htmlTable = await RdDResolutionTable.buildHTMLTable({ carac: rollData.caracValue, @@ -129,12 +129,6 @@ export class RdDRollResolutionTable extends Dialog { } /* -------------------------------------------- */ - _computeFinalLevel(rollData) { - const diffConditions = Misc.toInt(rollData.diffConditions); - const diffLibre = Misc.toInt(rollData.diffLibre); - - return diffLibre + diffConditions; - } async close() { await super.close();