Add programmatic filtering option to compendium browser
To allow customizing displayed results, it would be nice if there was way to programmatically filter compendium browser content.
Personally I would like to filter out duplicate spells, spells that I have altered versions of in my homebrew, or spells that I have simply banned, to not show the originals. Same for equipment.
Currently the best option is to have my homebrew module simply delete the entries from the system compendiums, but this is bad approach as it will affect other worlds, so it's not actually viable.
Without specific API the best option seems to be overriding setup()
and filter this.entries
, which may be sufficient.