feat: Initial implementation of pathbuilder import #447
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Description
Add the ability to import PCs (and NPCs) from Pathbuilder2e
Changes Proposed
Related Issues
Fixes - #448
Checklist
Screenshots (if applicable)
Additional Notes
The intent here is to have a quick reference for the GM for all the shenanigans that a Player gets up to, so the emphasis has been on listing and linking all feats, spells and items.
Pathbuilder makes no distinction in its data structure between melee and ranged weapons. I have them all listed as 'Melee" because that's closer to a normal bestiary card, but was debating replacing that with the word "attack" or "weapon".
I specify the json file as the source. Not sure if that's what you intended. I'm thinking that the next feature I want to add is to have the program prompt for a JSON id (a pathbuilder concept) and then the importer makes a restful API call to fetch the JSON without the need for the GM first storing the data on disk and then loading that file. Then the source would be the JSON id. (for an even more future possibility of a refresh enhancement).
Hope you like the code - more than willing to make adjustments.