Skip to content

Commit

Permalink
fix: masterable check for modular parts and Pets
Browse files Browse the repository at this point in the history
  • Loading branch information
SlayerOrnstein committed Dec 3, 2024
1 parent 36b397e commit 3ed775b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build/parser.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1071,6 +1071,12 @@ class Parser {
*/
applyMasterable(item) {
item.masterable = masterableCategories.includes(item.category);

if (item.type?.includes('Component') || item.category == 'Pets') {

Check failure on line 1075 in build/parser.mjs

View workflow job for this annotation

GitHub Actions / Lint

Expected '===' and instead saw '=='
const regex =
/^((?=.*Amp)|(?=.*Modular))(?=.*Barrel).*$|^(?=.*Pet)(?=.*Head).*$|PetPowerSuit|PvPVariantTip|^(?=.*Hoverboard)(?=.*Deck).*$/;
item.masterable = regex.test(item.uniqueName);
}
}

addResistanceData(item, category) {
Expand Down

0 comments on commit 3ed775b

Please sign in to comment.