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

@ -138,9 +138,9 @@ export class RdDRoll extends Dialog {
}
if (this.rollData.selectedCarac) {
this.html.find("[name='carac']").val(
this.actor?.type == ACTOR_TYPES.personnage
? RdDCarac.caracDetails(this.rollData.selectedCarac.label).code
: this.rollData.selectedCarac.label
RdDCarac.caracDetails(this.rollData.selectedCarac.label, { onMessage: m => { } })?.code
?? this.rollData.selectedCarac.code
?? Grammar.toLowerCaseNoAccentNoSpace(this.rollData.selectedCarac.label)
)
}
if (this.rollData.selectedSort) {
@ -259,7 +259,7 @@ export class RdDRoll extends Dialog {
this.updateRollResult(html);
});
}
/* -------------------------------------------- */
close() {
if (this.rollData.canClose) {