diff --git a/module/item-sort.js b/module/item-sort.js index 6bff1c59..1ebf950b 100644 --- a/module/item-sort.js +++ b/module/item-sort.js @@ -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; diff --git a/module/rdd-resolution-table.js b/module/rdd-resolution-table.js index 16c2a806..395b3659 100644 --- a/module/rdd-resolution-table.js +++ b/module/rdd-resolution-table.js @@ -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 }); } }