Skip to content

Commit

Permalink
effect input should include spells with no effects, too
Browse files Browse the repository at this point in the history
  • Loading branch information
seiyria committed Sep 17, 2024
1 parent 5785c3f commit dc0fb44
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,21 @@ export class InputEffectComponent {
(s) => s._hasEffect && !['Attribute', 'Mood'].includes(s.name)
);

const baseSpells = this.modService
.mod()
.stems.filter((s) => s._hasSpell && !s._hasEffect);

return sortBy(
[
...baseEffectList,
...baseEffects.map((e) => ({
value: e._gameId,
desc: e.all.desc,
})),
...baseSpells.map((e) => ({
value: e._gameId,
desc: e.all.desc,
})),
],
'value'
);
Expand Down

0 comments on commit dc0fb44

Please sign in to comment.