From 3cc8574fa050bc40b7bfb5a6c13d366a45126537 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bastos=20Dias?= <80102738+andrebastosdias@users.noreply.github.com> Date: Sat, 10 Jan 2026 02:12:48 +0000 Subject: [PATCH] Shorten 'Restricted Legendary' to 'Restricted' (#2577) --- build-tools/build-indexes | 8 ++++---- play.pokemonshowdown.com/src/battle-dex-search.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/build-tools/build-indexes b/build-tools/build-indexes index 7ee3babbb..032af7dee 100755 --- a/build-tools/build-indexes +++ b/build-tools/build-indexes @@ -373,7 +373,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... "); if (isVGC) { if (species.isNonstandard && species.isNonstandard !== 'Gigantamax') return 'Illegal'; if (baseSpecies.tags.includes('Mythical')) return 'Mythical'; - if (baseSpecies.tags.includes('Restricted Legendary')) return 'Restricted Legendary'; + if (baseSpecies.tags.includes('Restricted Legendary')) return 'Restricted'; if (species.tier === 'NFE') return 'NFE'; if (species.tier === 'LC') return 'LC'; return 'Regular'; @@ -401,7 +401,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... "); } if (species.isNonstandard && ['LGPE', 'CAP', 'Future'].includes(species.isNonstandard)) return 'Illegal'; return species.tags.includes('Mythical') ? 'Mythical' : - species.tags.includes('Restricted Legendary') ? 'Restricted Legendary' : + species.tags.includes('Restricted Legendary') ? 'Restricted' : species.nfe ? (species.prevo ? 'NFE' : 'LC') : 'Regular'; } if (species.tier === 'CAP' || species.tier === 'CAP NFE' || species.tier === 'CAP LC') { @@ -617,7 +617,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... "); const tierOrder = (() => { if (isVGC || isGen9BH) { - return ["Mythical", "Restricted Legendary", "Regular", "NFE", "LC"]; + return ["Mythical", "Restricted", "Regular", "NFE", "LC"]; } if (isRS) { return ["Regular", "NFE", "LC", "Uber"]; @@ -636,7 +636,7 @@ process.stdout.write("Building `data/teambuilder-tables.js`... "); for (const tier of tierOrder) { if (tier in { 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, + "(DUU)": 1, New: 1, Legal: 1, Regular: 1, Restricted: 1, "CAP LC": 1, }) { let usedTier = tier; if (usedTier === "(DUU)") usedTier = "DNU"; diff --git a/play.pokemonshowdown.com/src/battle-dex-search.ts b/play.pokemonshowdown.com/src/battle-dex-search.ts index a9d89e193..dd4e5984d 100644 --- a/play.pokemonshowdown.com/src/battle-dex-search.ts +++ b/play.pokemonshowdown.com/src/battle-dex-search.ts @@ -1092,7 +1092,7 @@ class BattlePokemonSearch extends BattleTypedSearch<'pokemon'> { format === 'vgc2010' || format === 'vgc2016' || format.startsWith('vgc2019') || format === 'vgc2022' || format.endsWith('regg') || format.endsWith('regi') ) { - tierSet = tierSet.slice(slices["Restricted Legendary"]); + tierSet = tierSet.slice(slices["Restricted"]); } else { tierSet = tierSet.slice(slices.Regular); }