Skip to content

Commit

Permalink
chore: Clean up after trait changes
Browse files Browse the repository at this point in the history
  • Loading branch information
xdy committed Jul 24, 2024
1 parent 3216e0f commit e9351ea
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,11 @@ function filterTraitList(traitsList: string[], prefix: string, postfix: string):
}
}

let aonCreatureTypes: string[] = [];
let creatureIdentificationTraits: string[] = [];
if (game.settings.get(MODULENAME, "npcMystifierUseCreatureTypesTraits")) {
aonCreatureTypes = traitsList.filter((trait: string) => TRAITS.CREATURE_IDENTIFICATION_TRAITS.includes(trait));
creatureIdentificationTraits = traitsList.filter((trait: string) =>
TRAITS.CREATURE_IDENTIFICATION_TRAITS.includes(trait),
);
}

let pf2eCreatureTraits: string[] = [];
Expand All @@ -111,7 +113,7 @@ function filterTraitList(traitsList: string[], prefix: string, postfix: string):
.concat(eliteWeak)
.concat(rarities)
.concat(others)
.concat(aonCreatureTypes)
.concat(creatureIdentificationTraits)
.concat(pf2eCreatureTraits)
.concat([postfix]),
).values(),
Expand Down
4 changes: 2 additions & 2 deletions static/lang/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -589,8 +589,8 @@
"name": "Use creature traits."
},
"npcMystifierUseCreatureTypesTraits": {
"hint": "Check to use creature type traits (see https://2e.aonprd.com/Traits.aspx) in the mystified name.",
"name": "Use creature type traits"
"hint": "Check to use creature identification traits (see https://2e.aonprd.com/Rules.aspx?ID=2641) in the mystified name.",
"name": "Use creature identification traits"
},
"npcMystifierUseEliteWeak": {
"hint": "Check to use elite/weak in the mystified name.",
Expand Down

0 comments on commit e9351ea

Please sign in to comment.