daggerheart/module/applications/dialogs
George Brocklehurst b05915bd80
Downtime: allow moves to be taken individually.
Fixes https://github.com/Foundryborne/daggerheart/issues/374

Some downtime moves require a roll to see how successful they are. In these
cases, the player might want to see how their first move works out before
they select their next one.

This commit updates the downtime dialog to allow for this behaviour:

- The "Take Downtime" button is enabled whenever any moves are selected.
- Clicking the button only closes the dialog when all moves have been made.

To keep track of this, the `nrChoices` object has been expanded to include a
`taken` counter, which is increased whenever a move is taken.

After making one move the selection is reset, but the number of moves
displayed in the dialog header and the number of permitted selections both
take the number of taken moves into account.
2025-07-20 11:05:05 +01:00
..
_module.mjs [Feature] Item Resource Support (#328) 2025-07-13 20:12:32 -03:00
beastformDialog.mjs Language Organization (#281) 2025-07-06 17:43:12 +02:00
costSelectionDialog.mjs fix style problems in bottom sheets and enhance damage and action dialogs (#325) 2025-07-12 14:44:14 +02:00
d20RollDialog.mjs Feature/344 bardic rally (#363) 2025-07-17 00:45:53 +02:00
damageDialog.mjs Feature/336 damage targeted resources (#376) 2025-07-19 15:48:50 +02:00
damageReductionDialog.mjs Feature/336 damage targeted resources (#376) 2025-07-19 15:48:50 +02:00
damageSelectionDialog.mjs fix style problems in bottom sheets and enhance damage and action dialogs (#325) 2025-07-12 14:44:14 +02:00
deathMove.mjs Language Organization (#281) 2025-07-06 17:43:12 +02:00
downtime.mjs Downtime: allow moves to be taken individually. 2025-07-20 11:05:05 +01:00
ownershipSelection.mjs Language Organization (#281) 2025-07-06 17:43:12 +02:00
resourceDiceDialog.mjs Improved the datastructure some to avoid errors and simplify useage (#361) 2025-07-17 14:07:11 -03:00