Skip to content

Commit

Permalink
fix ZUBL
Browse files Browse the repository at this point in the history
  • Loading branch information
scheibo committed Sep 10, 2024
1 parent b29da0f commit 6e87624
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions pkmn/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ describe('Smogon', () => {
expect(Smogon.format(gen(2), 'Snorlax')).toBe('gen2ou');
expect(Smogon.format(gen(3), 'Dragonair')).toBe('gen3pu');
expect(Smogon.format(gen(6), 'Vanilluxe')).toBe('gen6zu');
expect(Smogon.format(gen(1), 'Arbok')).toBe('gen1pu');
});

test('name', () => {
Expand Down
4 changes: 2 additions & 2 deletions pkmn/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,14 +161,14 @@ const PREFIXES = ['Pichu', 'Basculin', 'Keldeo', 'Genesect', 'Vivillon', 'Magear
const SUFFIXES = ['-Antique', '-Totem'];

// Conversion between a Pokémon's Tier and a format suffix.
const FORMATS: {[key in Exclude<Tier.Singles | 'ZU' | Tier.Other, 'NFE'>]: string} = {
const FORMATS: {[key in Exclude<Tier.Singles | 'ZU' | 'ZUBL' | Tier.Other, 'NFE'>]: string} = {
AG: 'anythinggoes',
Uber: 'ubers', '(Uber)': 'ubers',
OU: 'ou', '(OU)': 'ou', 'UUBL': 'ou',
UU: 'uu', 'RUBL': 'uu',
RU: 'ru', 'NUBL': 'ru',
NU: 'nu', '(NU)': 'nu', 'PUBL': 'nu',
PU: 'pu', '(PU)': 'pu',
PU: 'pu', '(PU)': 'pu', 'ZUBL': 'pu',
ZU: 'zu',
LC: 'lc',
Unreleased: 'anythinggoes',
Expand Down
2 changes: 1 addition & 1 deletion pkmn/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@pkmn/smogon",
"version": "0.5.12",
"version": "0.5.13",
"description": "A rich client for processed and aggregated Smogon analysis and moveset information",
"homepage": "https://data.pkmn.cc/",
"repository": "github:pkmn/smogon",
Expand Down

0 comments on commit 6e87624

Please sign in to comment.