javalent / dice-roller

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

🐞 Custom percent dice results are always 0 #280

Closed rg-wood closed 6 months ago

rg-wood commented 7 months ago

Check for existing bug reports before submitting.

Expected Behavior

As the documentation states, when I use a dice: 1d66% the result should be something like [6, 3] = 6,3.

Current behaviour

The result for any custom percent dice is always 0.

Reproduction

  1. Create a new note
  2. Create a dice roll using this template: dice: 1d66%.

Which Operating Systems are you using?

Obsidian Version Check

1.4.16

Plugin Version

10.4.0

Confirmation

Possible solution

No response

rg-wood commented 6 months ago

Confirmed 🙏