diff --git a/module/documents/roll.mjs b/module/documents/roll.mjs index f8a0428..035b93c 100644 --- a/module/documents/roll.mjs +++ b/module/documents/roll.mjs @@ -42,6 +42,11 @@ export class CelestopolRoll extends Roll { ? game.i18n.localize(SYSTEM.WOUND_LEVELS[woundLevelId]?.label ?? "") : null + const modifierChoices = [-4, -3, -2, -1, 0, 1, 2, 3, 4].map(v => ({ + value: v, + label: v > 0 ? `+${v}` : `${v}`, + })) + const dialogContext = { actorName: options.actorName, statLabel: options.statLabel, @@ -53,6 +58,7 @@ export class CelestopolRoll extends Roll { defaultDifficulty: options.difficulty ?? "normal", destGaugeFull, defaultRollMoonDie: options.rollMoonDie ?? false, + modifierChoices, } const content = await foundry.applications.handlebars.renderTemplate( diff --git a/styles/roll.less b/styles/roll.less index f188421..4edd4f5 100644 --- a/styles/roll.less +++ b/styles/roll.less @@ -187,7 +187,7 @@ text-align: left; } - input { width: 100%; box-sizing: border-box; } + input, select { width: 100%; box-sizing: border-box; } } } diff --git a/templates/roll-dialog.hbs b/templates/roll-dialog.hbs index 8e3c9a5..42fba9f 100644 --- a/templates/roll-dialog.hbs +++ b/templates/roll-dialog.hbs @@ -40,11 +40,19 @@
- +
- +