gestion de bonus

utilisation du calcul de réussites existant
This commit is contained in:
Vincent Vandemeulebrouck 2020-12-06 19:31:54 +01:00
parent 9e8ebdda0d
commit 4a3b2f6d63

View File

@ -90,12 +90,10 @@ export class RdDResolutionTable {
/* -------------------------------------------- */
static updateChancesWithBonus( chances, bonus ) {
if (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);
mergeObject(chances, this._computeCell(null, newScore), {overwrite: true});
}
}
/* -------------------------------------------- */