Skip to content

Commit

Permalink
Featre filder fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
MrPrimate committed Jan 30, 2025
1 parent e348af2 commit 42e653f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
# Next Up

- Fix for racial traits with level requirements imported on low level characters
- Experimental compendium import broke for some characters.
- Summon summons configs were not configured on spells (e.g. Mage Hand)

# 6.0.67

- Fix some scaling issues with midi generated effects
Expand Down
4 changes: 3 additions & 1 deletion src/lib/DDBCompendiumFolders.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ export class DDBCompendiumFolders {

async createCompendiumFolder({ name, parentId, color, folderId, flagTag } = {}) {
const data = this._createCompendiumFolderData({ name, parentId, color, folderId, flagTag });
console.warn("Creating folder", data);
const folder = await CompendiumHelper.createFolder(data);
console.warn("Created folder", folder);
return folder;
}

Expand Down Expand Up @@ -521,7 +523,7 @@ export class DDBCompendiumFolders {
color: "#222222",
flagTag: subClassFlag,
}));
this.subClassFeaturesFolder.push(subClassFolder);
this.subClassFeaturesFolder[parentClassName] = subClassFolder._id;
this.validFolderIds.push(subClassFolder._id);
return subClassFolder;
}
Expand Down
2 changes: 1 addition & 1 deletion src/parser/features/CharacterFeatureFactory.js
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ export default class CharacterFeatureFactory {
(trait) => CharacterFeatureFactory.includedFeatureNameCheck(trait.definition.name)
&& !trait.definition.hideInSheet
&& !this.excludedOriginFeatures.includes(trait.definition.id)
&& (this.ddbCharacter.totalLevels >= (trait.requiredLevel ?? 1)),
&& (this.ddbCharacter.totalLevels >= (trait.definition.requiredLevel ?? 1)),
);

for (const trait of traits) {
Expand Down

0 comments on commit 42e653f

Please sign in to comment.