Skip to content

Commit

Permalink
v5.2.18
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Jun 17, 2024
1 parent e068654 commit b76bd16
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 5.2.18

- Fix compendium load fail.

# 5.2.17

- Sacred Weapon is now an enchantment, and if not using Active Token Effects, a Simple Macro is provided to toggle on/off the light emission.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ddb-importer",
"version": "5.2.17",
"version": "5.2.18",
"author": "MrPrimate",
"description": "Foundry VTT module for integrating D&D Beyond content",
"private": true,
Expand Down
4 changes: 2 additions & 2 deletions src/muncher/classes/classes.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ function getHPAdvancement(klass, character) {

async function addSRDAdvancements(advancements, klass) {
for (const packId of SETTINGS.FOUNDRY_COMPENDIUM_MAP["classes"]) {
const pack = CompendiumHelper.getCompendium(packId);
const pack = CompendiumHelper.getCompendium(packId, false);
if (!pack) continue;
await pack.getIndex();
const klassMatch = pack.index.find((k) => k.name === klass.name && k.type === "class");
Expand All @@ -66,7 +66,7 @@ async function addSRDAdvancements(advancements, klass) {

async function _getSRDEquipment(klass) {
for (const packId of SETTINGS.FOUNDRY_COMPENDIUM_MAP["classes"]) {
const pack = CompendiumHelper.getCompendium(packId);
const pack = CompendiumHelper.getCompendium(packId, false);
if (!pack) continue;
await pack.getIndex();
const klassMatch = pack.index.find((k) => k.name === klass.name && k.type === "class");
Expand Down
4 changes: 2 additions & 2 deletions src/parser/classes/DDBClass.js
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ export default class DDBClass {

async _addFoundryAdvancements() {
for (const packId of SETTINGS.FOUNDRY_COMPENDIUM_MAP["classes"]) {
const pack = CompendiumHelper.getCompendium(packId);
const pack = CompendiumHelper.getCompendium(packId, false);
if (!pack) continue;
await pack.getIndex();
const klassMatch = pack.index.find((k) =>
Expand Down Expand Up @@ -969,7 +969,7 @@ export default class DDBClass {

async _copyFoundryEquipment() {
for (const packId of SETTINGS.FOUNDRY_COMPENDIUM_MAP["classes"]) {
const pack = CompendiumHelper.getCompendium(packId);
const pack = CompendiumHelper.getCompendium(packId, false);
if (!pack) continue;
await pack.getIndex();
const klassMatch = pack.index.find((k) =>
Expand Down

0 comments on commit b76bd16

Please sign in to comment.