--- id: f8c36a21-d2e7-4ea7-a966-c5d1084134f6 type: solution title: "Crit threshold stepper for roll dialogs" tags: [vagabond-rpg, foundryvtt, javascript, ui-feature] importance: 0.5 confidence: 0.8 created: "2025-12-17T21:42:22.668476+00:00" updated: "2025-12-17T21:42:22.668476+00:00" --- Added always-visible crit threshold display with +/- adjustment buttons to Attack Roll and Spell Cast dialogs in Foundry VTT v13. Key implementation: store critThresholdModifier as relative adjustment (not absolute), use Math.clamp (not deprecated Math.clamped), reset modifier when weapon/spell changes, pass effective threshold to attackCheck()/skillCheck(). Files: attack-roll-dialog.mjs, spell-cast-dialog.mjs, rolls.mjs, templates, SCSS.