javalent / fantasy-statblocks

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

🐞 Some monsters need strings for HP and Skills #267

Closed MarquisDCarabas closed 10 months ago

MarquisDCarabas commented 12 months ago

Check for existing bug reports before submitting.

Expected Behavior

Certain monsters in 5e have strings for Skills which won't populate since it's expecting a number. For example, Steel Defender's stat block says "Skills Athletics +2 plus PB, Perception +0 plus PB × 2.

Current behaviour

Adding the string to the skillsaves property causes it to appear blank. Using the override function doesn't work either.

Reproduction

  1. Launch Obsidian
  2. Install Dataview and Fantasy Statblocks
  3. Download and import monster JSON data from 5e.tools
  4. Enter code block
    monster: Steel Defender
  5. Under Fantasy Statblock settings, find Steel Defender and edit.
  6. Change skillsaves:
    • athletics: "+2 plus PB"
    • perception: "+0 plus PB × 2"
      1. Save changes
  7. Reload statblock in note

Which Operating Systems are you using?

Obsidian Version Check

1.4.5 and 1.4.5

Plugin Version

3.9.3

Confirmation

Possible solution

Consider setting the skillsaves property to a string instead of a number or allowing the override function to change the expected entry type, e.g. from number to string.