Allow rolls to be rerolled with a luck token
Maybe a simple thing where if you right-click in the chat you can have the option to reroll a roll using a luck token. If you want to be even more fancy have the token removed from the persons sheet after doing it
So quoting the relevant rules here to ensure that we capture everything correctly.
- Each player can only have one luck token at a time.
- You can cash in a luck token to reroll any roll you just made. You must use the new result.
- You can also give your luck token to a companion.
Item 1 is covered by the UI right now (it's a checkbox).
There's no specific timing restriction here. It doesn't say "re-roll before the DM has revealed the results". So we should be able to safely use the chat boxes for Item 2. In fact, the chat boxes also make Item 3 possible.
One complication here. Some chat cards actually have multiple dice rolls. For example the attack is both an attack and a damage roll. So I think we need to upgrade the "attack card" with the option to re-roll either.
A second complication is the process of leveling up. There's nothing in the rules to prevent a luck token from being used on new HP or abilities for the level. We don't have that implemented yet, but that consideration may be a little hairy.
@Ulitmatex : does that cover your expectations for the feature?
Bonus content: There's also "pulp mode" (page 111) that modifies this pretty significantly. I think we should assume this is a separate feature.
@gatesvp Kelsey clarified that luck can never be used on leveling up. Those are not "in game rolls" they are mechanically different than say an attack roll or test. She was directly saying allowing luck on HP rolls would be in poor spirit as advantage HP rolls is a large part of the dwarf ancestry.
So I have done some quick work on this over the summer and it's kind of messy.
I have a version of the code that handles requirement 2: cash in luck to re-roll. I have some screenshots below, it correctly executes a re-roll and even updates the color of the box to show that luck was applied.
However, the problem I predicted is indeed an issue. We have a few different types of cards and they're not really tagged in any way. Each of these contains a specific value that is shown, so I can't simply "re-roll" the card entry, I need to reconstruct the card with new data. But I don't know what card type I'm trying to reconstruct, because we didn't tag it.
For now, I'm going to pause this work and see if I can sort out the tagging for each roll type. This will help with both luck and with future automation.
+1