Description
Dice expressions like d36 (6*(d6-1)+d6
), d200 (100*floor(d10/5)+d100
), d1000 ((100*(d10 % 10)+d100%100-1)%1000+1
) can be represented in terms of dice we can roll.
It would be nice if for some cases we could figure this out on the fly and roll the appropriate dice.
Structurally, I think this amounts to converting a Dice instance into an equivalent set along with a formula for recombining the results.
The big question is if we want any special affordances in the UI for what is happening. When they ask for a d200 and get a d10 and a d100, how will they know the 1-5 on the d10 means 1-100 and 6-10 means 101-200? Does it matter? Should we so the exact calculation used in the roll modal? Should we record this detail in the journal?
For a v1, probably let's ignore that detail. As things stand, you won't see any roll for unsupported dice-- so it doesn't seem urgent to solve.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Done