Correction d'ajustements et difficulté finale
Dans RdDActor.rollCaracCompetence : Prise en compte des ajustements manquants (moral, ajustement astrologique ou malus armure selon les cas, par exemple) Affichage des ajustements dans le message du chat
This commit is contained in:
parent
8b4f87062c
commit
00cab09f6e
@ -2464,11 +2464,11 @@ export class RdDActor extends Actor {
|
||||
caracValue: Number(carac.value),
|
||||
selectedCarac: carac,
|
||||
competence: competence,
|
||||
finalLevel: (Misc.templateData(competence)?.niveau ?? 0) + diff,
|
||||
diffLibre: diff,
|
||||
showDice: true,
|
||||
show: { title: options?.title ?? '' }
|
||||
};
|
||||
RollDataAjustements.calcul(rollData, this);
|
||||
await RdDResolutionTable.rollData(rollData);
|
||||
this._appliquerExperienceRollData(rollData);
|
||||
RdDResolutionTable.displayRollData(rollData, this)
|
||||
|
@ -157,10 +157,10 @@ export class RollDataAjustements {
|
||||
descr: reference.getDescr && reference.getDescr(rollData, actor)
|
||||
}
|
||||
}
|
||||
rollData.finalLevel = RollDataAjustements.sum(rollData.ajustements);
|
||||
}
|
||||
|
||||
/* -------------------------------------------- */
|
||||
|
||||
static sum(ajustements) {
|
||||
let sum = 0;
|
||||
for (var key in ajustements) {
|
||||
|
Loading…
Reference in New Issue
Block a user