Skip to content

Commit

Permalink
support name customization
Browse files Browse the repository at this point in the history
  • Loading branch information
roth-michael committed Sep 3, 2024
1 parent 269655c commit 2cdd4d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/effects/external/ChrisPremadesHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -531,21 +531,21 @@ ${chat}

if (restrictedItem.requiredEquipment) {
for (const requiredEquipment of restrictedItem.requiredEquipment) {
const itemMatch = documents.some((d) => d.name === requiredEquipment && DICTIONARY.types.inventory.includes(d.type));
const itemMatch = documents.some((d) => (d.flags.ddbimporter?.chrisPreEffectName ?? ChrisPremadesHelper.getOriginalName(d)) === requiredEquipment && DICTIONARY.types.inventory.includes(d.type));
if (!itemMatch) continue;
}
}

if (restrictedItem.requiredFeature) {
for (const requiredFeature of restrictedItem.requiredFeature) {
const itemMatch = documents.some((d) => d.name === requiredFeature && d.type === "feat");
const itemMatch = documents.some((d) => (d.flags.ddbimporter?.chrisPreEffectName ?? ChrisPremadesHelper.getOriginalName(d)) === requiredFeature && d.type === "feat");
if (!itemMatch) continue;
}
}

if (restrictedItem.requiredFeatures) {
for (const requiredFeature of restrictedItem.requiredFeatures) {
const itemMatch = documents.some((d) => d.name === requiredFeature && d.type === "feat");
const itemMatch = documents.some((d) => (d.flags.ddbimporter?.chrisPreEffectName ?? ChrisPremadesHelper.getOriginalName(d)) === requiredFeature && d.type === "feat");
if (!itemMatch) continue;
}
}
Expand Down

0 comments on commit 2cdd4d8

Please sign in to comment.