fantasycalendar / FoundryVTT-ItemPiles

Other
34 stars 54 forks source link

[BUG] - [PF2e] - Clicking "Spell Preparation" opens the Item Pile menu instead. #487

Open SantoII-github opened 9 months ago

SantoII-github commented 9 months ago

Have you tried to reset Item Piles' system settings? Yes

Describe the bug When a Player type Actor is configured to also be an Item Pile and has a Prepared Spellcasting entry, clicking "Spell Preparation" in that entry results in the Item Pile menu being open instead of the Spell Preparation menu.

To Reproduce Steps to reproduce the behavior:

  1. Create a new Pathfinder 2e world with Item Piles and its dependencies installed.
  2. Create a Player Actor and add any prepared spellcasting entry to its Spellcasting tab
  3. Configure the Player to be treated as an Item Pile.
  4. Click the Spell Preparation button in the Spellcasting entry of the character sheet, which will open the Item Pile instead.

Expected behavior The Spell Preparation menu should be open, just like it happens when the Player is not treated as an Item Pile.

Screenshots https://i.imgur.com/XtQzSNy.jpeg

Setup:

Active modules:

Additional context Honestly a bit of a niche bug considering PF2e isn't necessarily fully supported by this module as far as I know, but it is quite important for the use case of making a player an Item Pile so inventories are consistent across the VTT. Hopefully it can be resolved.

Haxxer commented 9 months ago

Why are you turning players into item piles in the first place?

SantoII-github commented 9 months ago

Turning a player into an Item Pile allows me to view and manage their inventory using a grid via the "Vault" Pile type instead of using Pathfinder's bulk system. This is useful for my current campaign, but I understand that it's a fringe case.