diff --git a/module/actor/export-scriptarium/mapping.js b/module/actor/export-scriptarium/mapping.js index e36db5ff..0db57523 100644 --- a/module/actor/export-scriptarium/mapping.js +++ b/module/actor/export-scriptarium/mapping.js @@ -169,10 +169,10 @@ export class Mapping { arme: arme } } - static dommagesArme(actor, arme, maniement){ + static dommagesArme(actor, arme, maniement) { const dmgArme = RdDItemArme.dommagesReels(arme, maniement) const dommages = Misc.toSignedString(dmgArme + RdDBonus.bonusDmg(actor, maniement, dmgArme)) - switch(arme.system.mortalite) { + switch (arme.system.mortalite) { case 'non-mortel': return `(${dommages})` case 'empoignade': return '-' } @@ -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))