Support @roll[2d6]

This commit is contained in:
2025-01-11 17:32:43 +01:00
parent 06aff9a3c0
commit 792558ac84
11 changed files with 119 additions and 56 deletions

View File

@ -173,7 +173,7 @@ export class RdDRoll extends Dialog {
this.updateRollResult(html);
this.html.find("[name='diffLibre']").val(this.rollData.diffLibre);
});
this.html.find('.roll-carac-competence').change((event) => {
this.html.find('.roll-text').change((event) => {
const competence = event.currentTarget.value
this.rollData.competence = this.rollData.competences.find(it => Grammar.equalsInsensitive(it.name, competence))
this.updateRollResult(html);