mirror of
https://github.com/Foundryborne/daggerheart.git
synced 2026-01-17 15:39:02 +01:00
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. |
||
|---|---|---|
| .. | ||
| _module.mjs | ||
| beastformDialog.mjs | ||
| costSelectionDialog.mjs | ||
| d20RollDialog.mjs | ||
| damageDialog.mjs | ||
| damageReductionDialog.mjs | ||
| damageSelectionDialog.mjs | ||
| deathMove.mjs | ||
| downtime.mjs | ||
| ownershipSelection.mjs | ||
| resourceDiceDialog.mjs | ||