Skip to content

Commit

Permalink
fix(import): fix talents' pack in specializations
Browse files Browse the repository at this point in the history
  • Loading branch information
obrenckle committed Aug 9, 2024
1 parent 6163f07 commit 9e60128
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@
* XP spending now consistently uses a dollar sign to trigger spending instead of the various methods it previously used ([#1629](/~https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1629))
* Fixes:
* Includes species characteristics bonus when calculating characteristic upgrade cost ([#1638](/~https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1638))
* Specializations: Talents are now correctly looked up in compendium
* Specializations: Talents are now correctly looked up in compendium ([#1642](/~https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1642)))
* Generic slot combat tracker: Removed "unused" slot checking (on combatant defeat) as they would sometimes lead to actors being unable to act
* Weapon `special` text now properly renders dice icons ([#1625](/~https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1625))
* Specializations: Embedded talents are now correctly linked to their compendium ([#1650](/~https://github.com/StarWarsFoundryVTT/StarWarsFFG/issues/1650)))

`1.902`
* Features:
Expand Down
5 changes: 3 additions & 2 deletions modules/importer/oggdude/importers/specializations.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,10 @@ export default class Specializations {
}

if (talentItem.compendium) {
rowTalent.pack = `${talentItem.compendium.metadata.package}.${talentItem.compendium.metadata.name}`;
rowTalent.pack = `${talentItem.compendium.metadata.packageName}.${talentItem.compendium.metadata.name}`;
} else {
CONFIG.logger.warn(`Unable to assign pack to ${rowTalent.name} Talent in ${data.name} specialization.`);
}

const talentKey = `talent${i * 4 + index}`;
data.system.talents[talentKey] = rowTalent;
} else {
Expand Down

0 comments on commit 9e60128

Please sign in to comment.