Fix feuille simplifiée case TMR

Cases spéciales des TMRs mal gérée...
This commit is contained in:
Vincent Vandemeulebrouck 2024-12-04 00:23:54 +01:00
parent 91717a3290
commit 28ee8607bb

View File

@ -259,6 +259,9 @@ export class Mapping {
const diff = 'R' + RdDItemSort.addSpaceToNonNumeric(sort.system.difficulte)
return `${sort.name}${ptSeuil} (${caseTMR}) ${diff} ${coutReve}`
}
static toVar(caseSpeciale) {
return Grammar.toLowerCaseNoAccent(caseSpeciale).startsWith('var') ? 'var' : caseSpeciale
}
static bonusCase(sort) {
const list = RdDItemSort.stringToBonuscases(sort.system.bonuscase).sort(Misc.descending(it => it.bonus))