Add weapons attacks

This commit is contained in:
2023-04-14 17:01:29 +02:00
parent 606271e725
commit 32b5868646
10 changed files with 218 additions and 137 deletions

View File

@@ -5,7 +5,7 @@ export class DarkStarsRollDialog extends Dialog {
/* -------------------------------------------- */
static async create(actor, rollData) {
let options = { classes: ["DarkStarsDialog"], width: 320, height: 'fit-content', 'z-index': 99999 };
let options = { classes: ["DarkStarsDialog"], width: 420, height: 'fit-content', 'z-index': 99999 };
let html = await renderTemplate('systems/fvtt-dark-stars/templates/apps/roll-dialog-generic.hbs', rollData);
return new DarkStarsRollDialog(actor, rollData, html, options);
@@ -61,6 +61,14 @@ export class DarkStarsRollDialog extends Dialog {
html.find('#bonusMalus').change((event) => {
this.rollData.bonusMalus = Number(event.currentTarget.value)
})
html.find('#above-effective-range').change((event) => {
this.rollData.isAboveEffectiveRange = event.currentTarget.checked
})
html.find('#weapon-aiming').change((event) => {
this.rollData.weaponAiming = String(event.currentTarget.value)
})
}
}