Corrections compétences créatures

This commit is contained in:
2025-01-26 23:04:12 +01:00
parent 7ed9a4a12b
commit 70e3e63001
5 changed files with 37 additions and 30 deletions

View File

@ -269,7 +269,7 @@ export class RdDBaseActorReve extends RdDBaseActor {
}
/* -------------------------------------------- */
async openRollDialog({ name, label, template, rollData, callbacks}) {
async openRollDialog({ name, label, template, rollData, callbacks }) {
const dialog = await RdDRoll.create(this, rollData,
{ html: template, close: async html => await this._onCloseRollDialog(html) },
{ name: name, label: label, callbacks: [this.createCallbackExperience(), this.createCallbackAppelAuMoral()].concat(callbacks) })
@ -303,7 +303,7 @@ export class RdDBaseActorReve extends RdDBaseActor {
competence: competence,
show: { title: options?.title ?? '' }
},
callbacks:[async r => this.$onRollCompetence(r, options)]
callbacks: [async r => this.$onRollCompetence(r, options)]
});
}
/**
@ -411,7 +411,7 @@ export class RdDBaseActorReve extends RdDBaseActor {
return;
}
// Transformer la competence de créature
RdDItemCompetenceCreature.setRollDataCreature(this, rollData, competence)
RdDItemCompetenceCreature.setRollDataCreature(rollData)
}
const dialogLabel = 'Jet ' + Grammar.apostrophe('de', competence.name);
await this.openRollDialog({