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
The encounter builder table is not very useful when dealing with pathfinder 2nd edition (PF2e) monsters. For some reason the export of PF2e monsters as yaml monster stats blocks does not follow the same pattern as DnD 5e monsters. In particular, traits (a system that to my knowledge does not exist in 5e) are not provided in a nice array, but rather with a list of several keys starting by "trait_" and followed by a 2 digits number containing each a single trait. The level field is also problematic since it is not provided in a numeric format but rather as a string with the "creature type" coming first followed by level (with a space for separator).
The point of this MR is to implement new filters and column types better suited for PF2e DM.
Changes Proposed
Changes in the table part of the encounter builder:
Notes:
Related Issues
No relevant issue.
Checklist
Screenshots (if applicable)
The interface with the new column and new filters:
Sorting on level, trait, and source:
Sorting on Monster type:
Create header modal:
Edit Filter Modal:
Additional Notes
I hope you are interested in this feature even if the plugin seems to focus on 5e conventions. Do not hesitate to tell me if you think some features are missing or need more polishing.
Thanks in adavance for your review :)