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

feat: Add new Pathfinder 2e Creature layout (#436) #438

Draft
wants to merge 13 commits into
base: main
Choose a base branch
from

Commits on Jul 8, 2024

  1. fix: Fix stringifier incorrectly matching some links

    The previous regex would match the following:
    ```
    abilityMods: [4, 2, 3, -3, 1, -1]
    resistances: "[Some Link](note.md)"
    ```
    
    So that that the first group (the link text) would match:
    ```
    4, 2, 3, -3, 1, -1]\n resistances: "[Some Link
    ```
    and the second group (the path) would match:
    ```
    note.md
    ```
    
    This commit changes the regex so that it doesn't falsely
    match in these cases and instead just matches the actual markdown
    link.
    miscoined committed Jul 8, 2024
    Configuration menu
    Copy the full SHA
    4fcb16d View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. feat: Add new Pathfinder 2e Creature layout (javalent#436)

    pf2e.css generated from the Fantasy-Statblocks-CSS-Development repo
    miscoined committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    41277c0 View commit details
    Browse the repository at this point in the history
  2. 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.
    miscoined committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    993432b View commit details
    Browse the repository at this point in the history
  3. 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.
    miscoined committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    dda44a8 View commit details
    Browse the repository at this point in the history
  4. 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.
    miscoined committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    2f131f5 View commit details
    Browse the repository at this point in the history
  5. 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.
    miscoined committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    e267351 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    065d69f View commit details
    Browse the repository at this point in the history
  7. 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
    miscoined committed Jul 17, 2024
    Configuration menu
    Copy the full SHA
    3569d41 View commit details
    Browse the repository at this point in the history

Commits on Jul 18, 2024

  1. Configuration menu
    Copy the full SHA
    8c9333a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    5bdd123 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    8034697 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d91dade View commit details
    Browse the repository at this point in the history

Commits on Sep 6, 2024

  1. Configuration menu
    Copy the full SHA
    32beb41 View commit details
    Browse the repository at this point in the history