Skip to content

Commit

Permalink
Merge pull request #108 from Mygod/nogmax
Browse files Browse the repository at this point in the history
remove gmax from pokeapi
  • Loading branch information
TurtIeSocks authored Sep 11, 2024
2 parents 4ebb03e + a0a3997 commit 01a6037
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 422 deletions.
1 change: 0 additions & 1 deletion src/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ const baseTemplate: FullTemplate = {
includeEstimatedPokemon: {
baseStats: true,
mega: true,
gmax: false,
},
processFormsSeparately: false,
includeRawForms: false,
Expand Down
45 changes: 0 additions & 45 deletions src/classes/PokeApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,15 +143,6 @@ export default class PokeApi extends Masterfile {

megaLookup(id: string, type: string): string | 1 | 2 | 3 {
switch (true) {
case id.endsWith('amped-gmax'):
case id.endsWith('key-gmax'):
case id.endsWith('strike-gmax'):
return this.capitalize(
id
.split('-')
.filter((word, i) => (i ? word : false))
.join('_'),
)
case id.endsWith('mega-y'):
return 3
case id.endsWith('mega-x'):
Expand Down Expand Up @@ -392,42 +383,6 @@ export default class PokeApi extends Masterfile {
'audino-mega',
'diancie-mega',
],
gmax: [
'snorlax-gmax',
'charizard-gmax',
'pikachu-gmax',
'eevee-gmax',
'butterfree-gmax',
'meowth-gmax',
'corviknight-gmax',
'alcremie-gmax',
'drednaw-gmax',
'machamp-gmax',
'gengar-gmax',
'toxtricity-amped-gmax',
'toxtricity-low-key-gmax',
'melmetal-gmax',
'coalossal-gmax',
'sandaconda-gmax',
'centiskorch-gmax',
'grimmsnarl-gmax',
'hatterene-gmax',
'copperajah-gmax',
'duraludon-gmax',
'flapple-gmax',
'appletun-gmax',
'orbeetle-gmax',
'garbodor-gmax',
'kingler-gmax',
'lapras-gmax',
'inteleon-gmax',
'cinderace-gmax',
'rillaboom-gmax',
'urshifu-single-strike-gmax',
'urshifu-rapid-strike-gmax',
'venusaur-gmax',
'blastoise-gmax',
],
}

for (const [type, ids] of Object.entries(theoretical)) {
Expand Down
Loading

0 comments on commit 01a6037

Please sign in to comment.