Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞 Some SRD statblocks have incorrect hit dice calculations #475

Open
3 of 7 tasks
MrCrackerplays opened this issue Jan 11, 2025 · 0 comments
Open
3 of 7 tasks

Comments

@MrCrackerplays
Copy link

Check for existing bug reports before submitting.

  • I searched for existing Bug Reports and found no similar reports.

Expected Behavior

Ghoul (as an example) should show its hit points as 22 (5d8) but shows 22 (5d8 + -1) instead

Current behaviour

Some statblocks have an incorrect hit_dice value (though a correct hp value) like Ghoul, Giant Ape, and Giant Boar (there are probably many others but these are just the ones I quickly found)
It seems to just be 1 less than it should, but I haven't looked super deep so there might be others are off by more than that

I noticed it in obsidian from the Ghoul statblock and then found the other 2 by looking at the commit (bbd1bf8, which was fixing #8) that last changed Ghoul's hit_dice. It should be noted though that not all hit dice that were imported in that commit are wrong, the Giant Badger's hit dice for example is correct.

Reproduction

add a statblock of a creature with incorrect hit dice (e.g. Ghoul) to a note
image

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version Check

1.7.7 and 1.5.12

Plugin Version

4.8.1

Confirmation

  • I have disabled all other plugins and the issue still persists.

Possible solution

Some hit dice were incorrect in commit bbd1bf8 when fixing #8
Assuming the hp value is correct for all statblocks and the dice part of hit_dice is correct then the hit dice could be recalculated programmatically by going through all the statblocks and comparing the hp vs the (average) result of the hit_dice and adding the difference to the hit dice formula if it's different.

Otherwise importing the hit dice from scratch from another source could be an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant