Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* feat: Add new Pathfinder 2e Creature layout (#436) pf2e.css generated from the Fantasy-Statblocks-CSS-Development repo * chore: Remove unused StatblockPF2e As far as I can tell this is never used anywhere and doesn't appear to have contents relevant to PF2e. * feat: Pass the plugin object to IfThen layout blocks This allows conditional blocks to do things like check plugin settings and whether other plugins are enabled. In particular, this allows layouts to only show encounter buttons when the Initiative Tracker plugin is enabled. * feat: Allow Saves layout blocks to be CSS styled Separates out the name and value into their own HTML elements rather than just rendered text so that we can style individual portions with CSS. This change has no visible effects - existing statblocks should look exactly the same. * feat: Use CSS to add modifier parens for the Table block This is instead of adding them to the text content itself. This allows layout authors to customize the appearance with CSS. * feat: Add property-dependant CSS class for Table layout blocks * fix: Refine the PF2e creature layout Thank you to MostTornBrain for valuable feedback! Most of this comes from there :) - Fix traits only showing when the trait property was present (even if alignment, size, or rarity was present) - Add sign (+/-) to perception modifier - Move Weaknesses before Resistances to match book layout - Don't show Initiative Tracker encounter buttons if Initiative Tracker isn't enabled - Show the initiative tracker view when the encounter buttons are pressed, to match the functionality of encounter buttons in the actual encounter blocks - Bold save names - Add sign (+/-) to ability modifiers * docs: Improve settings doc for Trait block callbacks * feat: Add callbacks for Saves layout blocks * feat: Add more CSS classes for Saves blocks * feat: Add more structured data entry for skills and saves * doc: Update documentation with new creature layout * fix: Pf2e Creature layout attack bonus giving NaN if undefined * fix: Change UI-facing text for CSS property setting toggle to be a positive rather than a negative * feat: Change attributes to a saves block so the data entry is clearer
- Loading branch information