diff --git a/module/rdd-roll.js b/module/rdd-roll.js index cbc8f5cd..b6d36add 100644 --- a/module/rdd-roll.js +++ b/module/rdd-roll.js @@ -219,14 +219,15 @@ export class RdDRoll extends Dialog { this.rollData.dmg.mortalite = event.currentTarget.checked ? "non-mortel" : "mortel"; this.updateRollResult(); }); - html.find('#tactique-combat').change((event) => { - this.rollData.tactique = event.currentTarget.value; - this.updateRollResult(); - }); html.find('.cuisine-proportions').change((event) => { this.rollData.proportions = Number(event.currentTarget.value); this.updateRollResult(); }); + html.find('.select-by-name').change((event) => { + const attribute = event.currentTarget.attributes['name'].value; + this.rollData[attribute] = event.currentTarget.value; + this.updateRollResult(); + }); html.find('.checkbox-by-name').change((event) => { const attribute = event.currentTarget.attributes['name'].value; this.rollData[attribute] = event.currentTarget.checked; diff --git a/templates/dialog-competence.html b/templates/dialog-competence.html index a2d55743..c4ba4d0e 100644 --- a/templates/dialog-competence.html +++ b/templates/dialog-competence.html @@ -50,7 +50,7 @@ {{else}} -