feat: remplace les inputs modificateur/aspect par des selects -4 à +4
- roll.mjs : passe modifierChoices dans le contexte du dialogue - roll-dialog.hbs : <select> pour modifier et aspectModifier (-4..+4) - roll.less : select inclus dans la règle width:100% du form-two-col Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user