Shorten 'Restricted Legendary' to 'Restricted' (#2577)

This commit is contained in:
André Bastos Dias 2026-01-10 02:12:48 +00:00 committed by GitHub
parent de8ab515f3
commit 3cc8574fa0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 5 additions and 5 deletions

View File

@ -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";

View File

@ -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);
}