diff --git a/Patchnotes.md b/Patchnotes.md index 7f0bae6..0ec0fe1 100644 --- a/Patchnotes.md +++ b/Patchnotes.md @@ -1,6 +1,10 @@ #0.9.0 -- Button on character sheets for automatically using spell level (works on default and TidySheet5e) +- Button on character sheets for opening a search with class and spell level (works on default and TidySheet5e) +- added filters for subclasses and backgrounds [League-of-Foundry-Developers/compendium-browser#48](https://github.com/League-of-Foundry-Developers/compendium-browser/issues/48) - Additional searches for sub-features +- Merged PR [League-of-Foundry-Developers/compendium-browser#45](https://github.com/League-of-Foundry-Developers/compendium-browser/pull/45) +- Used more DnD5e loaclization tags. Should be less work to translate, also defaults localization to tag name +- Fixed item rarity search in Foundry 10+ [League-of-Foundry-Developers/compendium-browser#54]https://github.com/League-of-Foundry-Developers/compendium-browser/issues/54 #0.8.2 - Fixed Class searching for spells - issue: #43 diff --git a/README.md b/README.md index f5bc204..03a06dd 100644 --- a/README.md +++ b/README.md @@ -3,24 +3,13 @@ Tired of scrolling compendia? Easily browse and filter for spells, feats, items, Compendium Browser is faster and better-behaved; **it no longer loads all the compendia into memory on start-up** (which sometimes hung servers because of memory or CPU requirements). Instead, it filters and loads on-demand, as well as giving you a Module Setting to control how many rows are loaded at a time. -[Patch Notes](https://raw.githubusercontent.com/League-of-Foundry-Developers/compendium-browser/master/Patchnotes.md) -## v0.8: -- Compatibility with Foundry V10 -- Added check for "Compendium Folders" module 'phantom' actors (#[CF_tempEntity]) to filter out of NPC list. -- Fix to handle un-migrated compendiums (they get auto-excluded from the browser even if selected) -## v0.7: -- Supports Foundry 0.8.x and Foundry 9 -- Faster searches using Foundry 0.8.x queries (thanks ZoltantheDM!) -- Faster NPC searches using getIndex() (thanks kyleady!) -## v0.6: -- Additional and Optional Features spells from Tasha's -- Spanish, German translations ## Summary -* **Authors**: Discord: Spetzel#0103; Felix (felix.mueller.86@web.de); ZoltantheDM -* **Version**: 0.7.2 -* **Foundry VTT Compatibility**: 0.8.6-9 +* **Authors**: Discord: Spetzel#0103; Felix (felix.mueller.86@web.de); ZoltantheDM (Zoltan#8700); eduardopato41 +* **Version**: 0.9.0 +* **Foundry VTT Compatibility**: 9-10 * **System Compatibility (If applicable)**: dnd5e * **Translation Support**: en, de (thanks https://github.com/CarnVanBeck), es (thanks https://github.com/JJBocanegra), fr, ja, pt-BR +[Patch Notes](https://raw.githubusercontent.com/League-of-Foundry-Developers/compendium-browser/master/Patchnotes.md) ## Installation 1. Go to the Add-on Modules tab in Foundry Setup @@ -36,9 +25,6 @@ This application enables anyone to add their own custom spell or npc filters via All filters featured in the app are included in this manner and can be found in the compendium-browser.js at around line 726. -## Contribution -If you feel like supporting my work, feel free to leave a tip at my paypal felix.mueller.86@web.de - ## License Creative Commons Licence
Compendium Browser - a module for Foundry VTT - by Felix Müller is licensed under a Creative Commons Attribution 4.0 International License. diff --git a/compendium-browser.js b/compendium-browser.js index a2af8f7..2c96c90 100644 --- a/compendium-browser.js +++ b/compendium-browser.js @@ -1540,15 +1540,20 @@ class CompendiumBrowser extends Application { } - //0.7.2c: Fix rarity encoding (uses camelcase names) - this.addItemFilter("CMPBrowser.MagicItems", "CMPBrowser.Rarity", 'data.rarity', 'select', - { - common: "CMPBrowser.RarityCommon", - uncommon: "CMPBrowser.RarityUncommon", - rare: "CMPBrowser.RarityRare", - veryRare: "CMPBrowser.RarityVeryRare", - legendary: "CMPBrowser.RarityLegendary" - }); + if (CompendiumBrowser.isFoundryV10Plus) { + this.addItemFilter("CMPBrowser.MagicItems", "DND5E.Rarity", 'system.rarity', 'select', CONFIG.DND5E.itemRarity); + } + else { + //0.7.2c: Fix rarity encoding (uses camelcase names) + this.addItemFilter("CMPBrowser.MagicItems", "DND5E.Rarity", 'data.rarity', 'select', + { + common: "DND5E.ItemRarityCommon", + uncommon: "DND5E.ItemRarityUncommon", + rare: "DND5E.ItemRarityRare", + veryRare: "DND5E.ItemRarityVeryRare", + legendary: "DND5E.ItemRarityLegendary", + }); + } } async addFeatFilters() {