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