gestion de bonus
utilisation du calcul de réussites existant
This commit is contained in:
		| @@ -90,12 +90,10 @@ export class RdDResolutionTable { | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   static updateChancesWithBonus( chances, bonus ) { | ||||
|     let newScore   = Number(chances.score) + Number(bonus); | ||||
|     chances.score  = newScore; | ||||
|     chances.sign   = this._reussiteSignificative(newScore); | ||||
|     chances.part   = this._reussitePart(newScore); | ||||
|     chances.epart  = this._echecParticulier(newScore); | ||||
|     chances.etotal = this._echecTotal(newScore); | ||||
|     if (bonus) { | ||||
|       let newScore   = Number(chances.score) + Number(bonus); | ||||
|       mergeObject(chances, this._computeCell(null, newScore), {overwrite: true}); | ||||
|     } | ||||
|   } | ||||
|  | ||||
|   /* -------------------------------------------- */ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user