asacolips-projects / pbta

Run games for any PbtA system in Foundry VTT!
https://asacolips.gitbook.io/pbta-system
MIT License
3 stars 7 forks source link

Allow sheetConfig overrides in Playbooks #16

Open asacolips opened 3 years ago

asacolips commented 3 years ago

In GitLab by @Asacolips on Feb 25, 2021, 08:34

Summary

Enter the feature request or bug description here.

Labels (do-not-change)

/cc @Asacolips

asacolips commented 3 years ago

In GitLab by @Asacolips on Jun 23, 2021, 08:01

I think there's primarily two ways to get this feature working:

  1. Complete Override. In this version, each playbook would have a sheetConfig field much like the system's sheetConfig setting, and if it's not empty/null, that's what actors of that playbook would use for their sheet. It would completely replace the normal sheet config for a given actor.
  2. Diff Override. In this version, each playbook would have a sheetConfig field, but the format would be different. Each major section (attrLeft, attrTop, stats, moveTypes, equipmentTypes) would have an exclude property that could be used to remove attributes that are present in the base sheet and an include property where new fields are created and added.

Both methods have their pros and cons. Option 1 gives total control over playbook sheets, while option 2 is likely easier to maintain over a long period of time since you only have to define which attributes should be removed and which attributes should be added.