Closed trevorschadt closed 1 year ago
I found the error. There’s a check for the right actor types, and it looks for PC
, but in the Cypher System, all actor types are lower case, i. e. pc
.
Adding "pc"
here (or transforming everything to lower case) will solve this issue: https://github.com/arcanistzed/pdf-sheet/blob/3c4dd403c9c72d738f81ea51a0bed2d0e4e2ab54/scripts/pdfsheet.js#L249
As a system agnostic and future-proof way, let the systems define what actor types should be able to export the sheet. For example, having NPCs have that sheet doesn’t really make sense for the Cypher System (NPCs don’t have character sheets), but the Companion actor type might work with different mappings.
In 5e I have recently added the option to have sheets also for NPC. I need to check if there is an API for getting the actor sheet. Will check. For the moment could be a solution for you if I add also lower case "pc" in the next build?
Yeah, lower case pc
will work.
Expected Behavior
Given:
When:
Then:
Current Behavior
Given: as above When: as above Then:
Steps to Reproduce
Context
No response
Version
0.22.4
Foundry VTT Version
11.306
Operating System
Windows
Browser / App
Native Electron App
Game System
cyphersystem
Modules Disabled