javalent / dice-roller

Inline dice rolling for Obsidian.md
265 stars 27 forks source link

🐞 `dice: d20` rolls 100 d20s #313

Closed Pachtjuilaard closed 2 months ago

Pachtjuilaard commented 2 months ago

Check for existing bug reports before submitting.

Expected Behavior

I would expect to only roll 1d20 when I do dice: d20, or any type of die for that matter, but I end up with a bit more dice rolled than that. dice: d1 results in exactly 100.

Current behaviour

afbeelding Adding modifiers like +9 or something still works as expected.

Reproduction

  1. Open any vault, Sandbox or not. Other installed plugins don't seem to matter.
  2. Write inline dice code like dice: d20, without declaring how many dice you're rolling.
  3. Ask your players if a natural 1022 without modifiers hits their AC.

Which Operating Systems are you using?

Obsidian Version Check

1.15.12

Plugin Version

11.0.1

Confirmation

Possible solution

No response

Pachtjuilaard commented 2 months ago

Your latest update fixed it. Thanks!