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

Update getTagList() #252

Open fe5hua opened 3 months ago

fe5hua commented 3 months ago

Needed to make these changes for module defined tags to work properly. I am not using tags via the tag settings of pbta.

mclemente commented 2 months ago

What is the reason for changing moduleActorTags and moduleItemTags from Objects into Strings? You're meant to format them as { [actor/item]: { all: "", [document.type]: "" } }, like this:

game.pbta.tagConfigOverride = {
  all: "",
  actor: {
    all: "",
    character: '["foo"]',
    npc: '["bar"]'
  },
  item: {
    all: "",
    gear: '["common", "rare"]'
  }
}

More importantly, how are you filtering the tags by document type if you parsing the entire object instead of just the document's type?