From bda9877190853382f6a90ec5b492abbbfed4af8b Mon Sep 17 00:00:00 2001 From: shrianshChari <30420527+shrianshChari@users.noreply.github.com> Date: Wed, 19 Mar 2025 12:23:16 -0700 Subject: [PATCH] Add teambuilder support for UUBL tiers (#2336) * Add support for Gen 3 UUBL (and every other UUBL tier) * Satisfy linter --- build-tools/build-indexes | 2 +- play.pokemonshowdown.com/src/battle-dex-search.ts | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/build-tools/build-indexes b/build-tools/build-indexes index c06d3a7ce..9153baff3 100755 --- a/build-tools/build-indexes +++ b/build-tools/build-indexes @@ -623,7 +623,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... "); for (const tier of tierOrder) { if (tier in { - OU: 1, AG: 1, Uber: 1, UU: 1, RU: 1, NU: 1, PU: 1, ZU: 1, NFE: 1, LC: 1, DOU: 1, DUU: 1, + OU: 1, UUBL: 1, AG: 1, Uber: 1, UU: 1, RU: 1, NU: 1, PU: 1, ZU: 1, NFE: 1, LC: 1, DOU: 1, DUU: 1, "(DUU)": 1, New: 1, Legal: 1, Regular: 1, "Restricted Legendary": 1, "CAP LC": 1, }) { let usedTier = tier; diff --git a/play.pokemonshowdown.com/src/battle-dex-search.ts b/play.pokemonshowdown.com/src/battle-dex-search.ts index 93ddfa8ca..c9b7a9bc2 100644 --- a/play.pokemonshowdown.com/src/battle-dex-search.ts +++ b/play.pokemonshowdown.com/src/battle-dex-search.ts @@ -1047,6 +1047,7 @@ class BattlePokemonSearch extends BattleTypedSearch<'pokemon'> { }); } } else if (format === 'ou') tierSet = tierSet.slice(slices.OU); + else if (format === 'uubl') tierSet = tierSet.slice(slices.UUBL); else if (format === 'uu') tierSet = tierSet.slice(slices.UU); else if (format === 'ru') tierSet = tierSet.slice(slices.RU || slices.UU); else if (format === 'nu') tierSet = tierSet.slice(slices.NU || slices.RU || slices.UU);