forked from public/foundryvtt-reve-de-dragon
		
	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:
		| @@ -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(); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user