Cleanup: simplification _computeFinalLevel
méthode supprimée dasn RdDRoll (car basée sur les ajustements), pas utile ici non plus.
This commit is contained in:
parent
7eb1d9f838
commit
46401e5d63
@ -112,7 +112,7 @@ export class RdDRollResolutionTable extends Dialog {
|
|||||||
async updateRollResult() {
|
async updateRollResult() {
|
||||||
let rollData = this.rollData;
|
let rollData = this.rollData;
|
||||||
rollData.caracValue = parseInt(rollData.selectedCarac.value)
|
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({
|
const htmlTable = await RdDResolutionTable.buildHTMLTable({
|
||||||
carac: rollData.caracValue,
|
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() {
|
async close() {
|
||||||
await super.close();
|
await super.close();
|
||||||
|
Loading…
Reference in New Issue
Block a user