javalent / dice-roller

Inline dice rolling for Obsidian.md
268 stars 28 forks source link

🧩 Add css-classes or similar for the natural dice roll for min/max rolled #244

Closed zoccer5555 closed 10 months ago

zoccer5555 commented 11 months ago

Scope

It shouldn't change anything for every existing feature. The only thing would be to add css-classes or similar. It would be useful for a DM while in a fight. Their it's possible to make many attacks especially in the combatant view and since it's already the total of the roll with added modifiers it's easy to miss a natural 1 or a natural 20, which would sometimes (or in the case of a nat20 always) be handled differently than the total shown.

Discovery

If it is possible, it would be enough to add a css-class data-min/data-max everytime the min/max of a dice was rolled, so one can change for example the colour of the dice roll in a statblock depending on the roll.

Validate

Unfortunately i don't know if thats a reasonable change, but at least it shouldn't create any bugs with any other feature of the dice roller.