ebullient / ttrpg-convert-cli

Utility to convert JSON data (for content you own) from 5etools or pf2etools into Obsidian-friendly Markdown.
https://www.ebullient.dev/projects/ttrpg-convert-cli/
Apache License 2.0
149 stars 33 forks source link

Add afflictions and attacks for Pf2e creatures as rich data objects #458

Closed miscoined closed 1 month ago

miscoined commented 1 month ago

I wanted to do this in such a way that template authors could have access to the contents of the creature's attacks within the creature's field, to make it easier for integration with fantasy statblocks. That's why this commit chain is so long - there's a lot of set up for adding a concept of a 'self-renderable' template - eg a Qute object with a render() method that handles it's own rendering. I toyed with a few different ways of doing this and am open if you've got a better alternative for how to accomplish this.

The other thing I've tried to do is let template authors choose whether or not the inline representation should be wrapped in an admonishment.