Skip to content

Commit

Permalink
generate nothing for npc onlys
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 5, 2024
1 parent 9b8f64a commit 5c73f92
Show file tree
Hide file tree
Showing 2 changed files with 4,262 additions and 1,912 deletions.
8 changes: 4 additions & 4 deletions _transformers/helpers/stems.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ function handleMacros(macros) {
}

module.exports.handleSTEMs = function handleSTEMs(fData) {
handleSpells(fData.filter((f) => f._hasSpell));
handleTraits(fData.filter((f) => f._hasTrait));
handleEffects(fData.filter((f) => f._hasEffect));
handleMacros(fData.filter((f) => f._hasMacro));
handleSpells(fData.filter((f) => !f._isNPCOnly && f._hasSpell));
handleTraits(fData.filter((f) => !f._isNPCOnly && f._hasTrait));
handleEffects(fData.filter((f) => !f._isNPCOnly && f._hasEffect));
handleMacros(fData.filter((f) => !f._isNPCOnly && f._hasMacro));
};
Loading

0 comments on commit 5c73f92

Please sign in to comment.