javalent / fantasy-statblocks

Create Dungeons and Dragons style statblocks for Obsidian.md
MIT License
341 stars 71 forks source link

Dice parser not working within Pathfinder 2E statblocks #357

Closed TreyValenta closed 4 months ago

TreyValenta commented 4 months ago

Check for existing bug reports before submitting.

Expected Behavior

Writing dice parser syntax (i.e. (1d20+1)) within a Pathfinder 2E layout statblock should bring up the ability to roll dice.

Current behaviour

In-line dice rolling option does not appear. It does appear when using the D&D 5e layout.

image image

Reproduction

layout: Basic Pathfinder 2e Layout
dice: true
name: "Glyphid Grunt"
level: "Creature -1"
trait_01: "Animal"
trait_02: "Glyphid"
alignment: "N"
size: "Medium"
hp: 7
health:
  - name: "HP"
    desc: "7; __Immunities__ visual"
perception:
  - name: "Perception"
    desc: "+5; scent (imprecise) 30 feet, echolocation (precise) 60 feet, no vision"
languages: "none"
abilityMods: [2,2,0,-5,1,-4]
skills:
  - name: "Skills"
    desc: "Athletics +4 (1d20+4)"
attacks:
  - name: "Melee"
    desc: "⬻ bite +4, __Damage__ 1d4 (1d4) piercing"

Which Operating Systems are you using?

Obsidian Version Check

1.5.8 and 1.5.3

Plugin Version

3.19.3

Confirmation

Possible solution

Regex is missing from the PF2e layout