Fix des malus encombrement

This commit is contained in:
Vincent Vandemeulebrouck
2022-11-19 01:35:01 +01:00
parent f953348f4e
commit 5565bb7a48
5 changed files with 28 additions and 15 deletions

View File

@ -63,13 +63,13 @@ export const referenceAjustements = {
},
encTotal: {
isVisible: (rollData, actor) => RdDItemCompetence.isMalusEncombrementTotal(rollData.competence),
isUsed: (rollData, actor) => rollData.useMalusEncTotal,
isUsed: (rollData, actor) => rollData.use.encTotal,
getLabel: (rollData, actor) => 'Encombrement total',
getValue: (rollData, actor) => -actor.getEncTotal()
},
surenc: {
isVisible: (rollData, actor) => rollData.useMalusSurenc,
isUsed: (rollData, actor) => rollData.useMalusSurenc,
isVisible: (rollData, actor) => actor.isSurenc(),
isUsed: (rollData, actor) => rollData.use.surenc,
getLabel: (rollData, actor) => 'Sur-encombrement',
getValue: (rollData, actor) => actor.computeMalusSurEncombrement()
},