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 ) {
|
||||
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});
|
||||
}
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
Loading…
Reference in New Issue
Block a user