Gestion des signes draconiques #455
@ -219,14 +219,15 @@ export class RdDRoll extends Dialog {
|
|||||||
this.rollData.dmg.mortalite = event.currentTarget.checked ? "non-mortel" : "mortel";
|
this.rollData.dmg.mortalite = event.currentTarget.checked ? "non-mortel" : "mortel";
|
||||||
this.updateRollResult();
|
this.updateRollResult();
|
||||||
});
|
});
|
||||||
html.find('#tactique-combat').change((event) => {
|
|
||||||
this.rollData.tactique = event.currentTarget.value;
|
|
||||||
this.updateRollResult();
|
|
||||||
});
|
|
||||||
html.find('.cuisine-proportions').change((event) => {
|
html.find('.cuisine-proportions').change((event) => {
|
||||||
this.rollData.proportions = Number(event.currentTarget.value);
|
this.rollData.proportions = Number(event.currentTarget.value);
|
||||||
this.updateRollResult();
|
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) => {
|
html.find('.checkbox-by-name').change((event) => {
|
||||||
const attribute = event.currentTarget.attributes['name'].value;
|
const attribute = event.currentTarget.attributes['name'].value;
|
||||||
this.rollData[attribute] = event.currentTarget.checked;
|
this.rollData[attribute] = event.currentTarget.checked;
|
||||||
|
@ -50,7 +50,7 @@
|
|||||||
{{else}}
|
{{else}}
|
||||||
<span class="tooltip">
|
<span class="tooltip">
|
||||||
<label>Tactique:</label>
|
<label>Tactique:</label>
|
||||||
<select name="tactique-combat" id="tactique-combat" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
|
<select class="select-by-name" name="tactique" id="tactique-combat" data-dtype="String" {{#unless use.conditions}}disabled{{/unless}}>
|
||||||
<option value="Attaque normale">Attaque normale</option>
|
<option value="Attaque normale">Attaque normale</option>
|
||||||
<option value="charge">Charge</option>
|
<option value="charge">Charge</option>
|
||||||
<option value="feinte">Feinte</option>
|
<option value="feinte">Feinte</option>
|
||||||
|
Loading…
Reference in New Issue
Block a user