Images competence #341

Merged
vincent.vandeme merged 1 commits from images-competence into v1.2 2021-01-22 16:04:39 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit a99a08ab21 - Show all commits

View File

@ -114,7 +114,7 @@ export class RdDItemSort extends Item {
let bonusCaseList = this.buildBonusCaseList(sort.data.bonuscase, false);
for( let bc of bonusCaseList) {
if (bc.case == coordTMR) { // Case existante
return bc.bonus;
return Number(bc.bonus);
}
}
return 0;

View File

@ -134,7 +134,7 @@ export class RdDResolutionTable {
/* -------------------------------------------- */
static _updateChancesWithBonus(chances, bonus) {
if (bonus) {
let newScore = chances.score + bonus;
let newScore = Number(chances.score) + bonus;
mergeObject(chances, this._computeCell(null, newScore), { overwrite: true });
}
}