diff --git a/.gitignore b/.gitignore index 53e2c27..bc7a169 100644 --- a/.gitignore +++ b/.gitignore @@ -406,3 +406,5 @@ server/egglocke/db.sqlite3 server/server-venv/ *.sqlite3 + +server/DEBUG_post.json diff --git a/docker-compose.yml b/docker-compose.yml index 7619707..efb0590 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -5,6 +5,7 @@ services: build: ./pkhex container_name: pkhex_container hostname: pkhex_host + platform: linux/amd64 ports: - "1234:1234" networks: diff --git a/server/.vscode/settings.json b/server/.vscode/settings.json new file mode 100644 index 0000000..afb940f --- /dev/null +++ b/server/.vscode/settings.json @@ -0,0 +1,3 @@ +{ + "discord.enabled": true +} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokeapifunctions.js b/server/pokepoll/static/pokepoll/pokeapifunctions.js index a77e0bf..54ef902 100644 --- a/server/pokepoll/static/pokepoll/pokeapifunctions.js +++ b/server/pokepoll/static/pokepoll/pokeapifunctions.js @@ -1,17 +1,44 @@ -function getPokemonSpriteURL(pokemonID, isShiny) { +function getPokemonSpriteURL(pokemonID, isShiny, isShowdown) { base_url = `https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/` + extension = `.png` + + if (isShowdown) { + base_url = `https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/showdown/` + extension = `.gif` + } + + if (isShiny) { - return `${base_url}shiny/${pokemonID}.png` + return `${base_url}shiny/${pokemonID}${extension}` } - return `${base_url}${pokemonID}.png` + return `${base_url}${pokemonID}${extension}` } + + async function getPokemonNameFromID(pokemonID) { return fetch(`https://pokeapi.co/api/v2/pokemon/${pokemonID}`) .then(response => response.json()) .then(data => data.name) -} \ No newline at end of file +} + +async function getPokemonIDFromName(pokemonName) { + return fetch(`https://pokeapi.co/api/v2/pokemon/${pokemonName}`) + .then(response => response.json()) + .then(data => data.id) +} + +async function pokemonIDandStatsMultiGet(pokemonName) { + return fetch(`https://pokeapi.co/api/v2/pokemon/${pokemonName}`) + .then(response => response.json()) + .then(data => { + return { + id: data.id, + stats: data.stats + } + }) + } \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_1.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_1.json new file mode 100644 index 0000000..3aad46a --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_1.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_2.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_2.json new file mode 100644 index 0000000..68e6632 --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_2.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151, "Chikorita": 152, "Bayleef": 153, "Meganium": 154, "Cyndaquil": 155, "Quilava": 156, "Typhlosion": 157, "Totodile": 158, "Croconaw": 159, "Feraligatr": 160, "Sentret": 161, "Furret": 162, "Hoothoot": 163, "Noctowl": 164, "Ledyba": 165, "Ledian": 166, "Spinarak": 167, "Ariados": 168, "Crobat": 169, "Chinchou": 170, "Lanturn": 171, "Pichu": 172, "Cleffa": 173, "Igglybuff": 174, "Togepi": 175, "Togetic": 176, "Natu": 177, "Xatu": 178, "Mareep": 179, "Flaaffy": 180, "Ampharos": 181, "Bellossom": 182, "Marill": 183, "Azumarill": 184, "Sudowoodo": 185, "Politoed": 186, "Hoppip": 187, "Skiploom": 188, "Jumpluff": 189, "Aipom": 190, "Sunkern": 191, "Sunflora": 192, "Yanma": 193, "Wooper": 194, "Quagsire": 195, "Espeon": 196, "Umbreon": 197, "Murkrow": 198, "Slowking": 199, "Misdreavus": 200, "Unown": 201, "Wobbuffet": 202, "Girafarig": 203, "Pineco": 204, "Forretress": 205, "Dunsparce": 206, "Gligar": 207, "Steelix": 208, "Snubbull": 209, "Granbull": 210, "Qwilfish": 211, "Scizor": 212, "Shuckle": 213, "Heracross": 214, "Sneasel": 215, "Teddiursa": 216, "Ursaring": 217, "Slugma": 218, "Magcargo": 219, "Swinub": 220, "Piloswine": 221, "Corsola": 222, "Remoraid": 223, "Octillery": 224, "Delibird": 225, "Mantine": 226, "Skarmory": 227, "Houndour": 228, "Houndoom": 229, "Kingdra": 230, "Phanpy": 231, "Donphan": 232, "Porygon2": 233, "Stantler": 234, "Smeargle": 235, "Tyrogue": 236, "Hitmontop": 237, "Smoochum": 238, "Elekid": 239, "Magby": 240, "Miltank": 241, "Blissey": 242, "Raikou": 243, "Entei": 244, "Suicune": 245, "Larvitar": 246, "Pupitar": 247, "Tyranitar": 248, "Lugia": 249, "Ho-Oh": 250, "Celebi": 251} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_3.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_3.json new file mode 100644 index 0000000..eb17f33 --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_3.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151, "Chikorita": 152, "Bayleef": 153, "Meganium": 154, "Cyndaquil": 155, "Quilava": 156, "Typhlosion": 157, "Totodile": 158, "Croconaw": 159, "Feraligatr": 160, "Sentret": 161, "Furret": 162, "Hoothoot": 163, "Noctowl": 164, "Ledyba": 165, "Ledian": 166, "Spinarak": 167, "Ariados": 168, "Crobat": 169, "Chinchou": 170, "Lanturn": 171, "Pichu": 172, "Cleffa": 173, "Igglybuff": 174, "Togepi": 175, "Togetic": 176, "Natu": 177, "Xatu": 178, "Mareep": 179, "Flaaffy": 180, "Ampharos": 181, "Bellossom": 182, "Marill": 183, "Azumarill": 184, "Sudowoodo": 185, "Politoed": 186, "Hoppip": 187, "Skiploom": 188, "Jumpluff": 189, "Aipom": 190, "Sunkern": 191, "Sunflora": 192, "Yanma": 193, "Wooper": 194, "Quagsire": 195, "Espeon": 196, "Umbreon": 197, "Murkrow": 198, "Slowking": 199, "Misdreavus": 200, "Unown": 201, "Wobbuffet": 202, "Girafarig": 203, "Pineco": 204, "Forretress": 205, "Dunsparce": 206, "Gligar": 207, "Steelix": 208, "Snubbull": 209, "Granbull": 210, "Qwilfish": 211, "Scizor": 212, "Shuckle": 213, "Heracross": 214, "Sneasel": 215, "Teddiursa": 216, "Ursaring": 217, "Slugma": 218, "Magcargo": 219, "Swinub": 220, "Piloswine": 221, "Corsola": 222, "Remoraid": 223, "Octillery": 224, "Delibird": 225, "Mantine": 226, "Skarmory": 227, "Houndour": 228, "Houndoom": 229, "Kingdra": 230, "Phanpy": 231, "Donphan": 232, "Porygon2": 233, "Stantler": 234, "Smeargle": 235, "Tyrogue": 236, "Hitmontop": 237, "Smoochum": 238, "Elekid": 239, "Magby": 240, "Miltank": 241, "Blissey": 242, "Raikou": 243, "Entei": 244, "Suicune": 245, "Larvitar": 246, "Pupitar": 247, "Tyranitar": 248, "Lugia": 249, "Ho-Oh": 250, "Celebi": 251, "Treecko": 252, "Grovyle": 253, "Sceptile": 254, "Torchic": 255, "Combusken": 256, "Blaziken": 257, "Mudkip": 258, "Marshtomp": 259, "Swampert": 260, "Poochyena": 261, "Mightyena": 262, "Zigzagoon": 263, "Linoone": 264, "Wurmple": 265, "Silcoon": 266, "Beautifly": 267, "Cascoon": 268, "Dustox": 269, "Lotad": 270, "Lombre": 271, "Ludicolo": 272, "Seedot": 273, "Nuzleaf": 274, "Shiftry": 275, "Taillow": 276, "Swellow": 277, "Wingull": 278, "Pelipper": 279, "Ralts": 280, "Kirlia": 281, "Gardevoir": 282, "Surskit": 283, "Masquerain": 284, "Shroomish": 285, "Breloom": 286, "Slakoth": 287, "Vigoroth": 288, "Slaking": 289, "Nincada": 290, "Ninjask": 291, "Shedinja": 292, "Whismur": 293, "Loudred": 294, "Exploud": 295, "Makuhita": 296, "Hariyama": 297, "Azurill": 298, "Nosepass": 299, "Skitty": 300, "Delcatty": 301, "Sableye": 302, "Mawile": 303, "Aron": 304, "Lairon": 305, "Aggron": 306, "Meditite": 307, "Medicham": 308, "Electrike": 309, "Manectric": 310, "Plusle": 311, "Minun": 312, "Volbeat": 313, "Illumise": 314, "Roselia": 315, "Gulpin": 316, "Swalot": 317, "Carvanha": 318, "Sharpedo": 319, "Wailmer": 320, "Wailord": 321, "Numel": 322, "Camerupt": 323, "Torkoal": 324, "Spoink": 325, "Grumpig": 326, "Spinda": 327, "Trapinch": 328, "Vibrava": 329, "Flygon": 330, "Cacnea": 331, "Cacturne": 332, "Swablu": 333, "Altaria": 334, "Zangoose": 335, "Seviper": 336, "Lunatone": 337, "Solrock": 338, "Barboach": 339, "Whiscash": 340, "Corphish": 341, "Crawdaunt": 342, "Baltoy": 343, "Claydol": 344, "Lileep": 345, "Cradily": 346, "Anorith": 347, "Armaldo": 348, "Feebas": 349, "Milotic": 350, "Castform": 351, "Kecleon": 352, "Shuppet": 353, "Banette": 354, "Duskull": 355, "Dusclops": 356, "Tropius": 357, "Chimecho": 358, "Absol": 359, "Wynaut": 360, "Snorunt": 361, "Glalie": 362, "Spheal": 363, "Sealeo": 364, "Walrein": 365, "Clamperl": 366, "Huntail": 367, "Gorebyss": 368, "Relicanth": 369, "Luvdisc": 370, "Bagon": 371, "Shelgon": 372, "Salamence": 373, "Beldum": 374, "Metang": 375, "Metagross": 376, "Regirock": 377, "Regice": 378, "Registeel": 379, "Latias": 380, "Latios": 381, "Kyogre": 382, "Groudon": 383, "Rayquaza": 384, "Jirachi": 385, "Deoxys": 386} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_4.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_4.json new file mode 100644 index 0000000..5db14a8 --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_4.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151, "Chikorita": 152, "Bayleef": 153, "Meganium": 154, "Cyndaquil": 155, "Quilava": 156, "Typhlosion": 157, "Totodile": 158, "Croconaw": 159, "Feraligatr": 160, "Sentret": 161, "Furret": 162, "Hoothoot": 163, "Noctowl": 164, "Ledyba": 165, "Ledian": 166, "Spinarak": 167, "Ariados": 168, "Crobat": 169, "Chinchou": 170, "Lanturn": 171, "Pichu": 172, "Cleffa": 173, "Igglybuff": 174, "Togepi": 175, "Togetic": 176, "Natu": 177, "Xatu": 178, "Mareep": 179, "Flaaffy": 180, "Ampharos": 181, "Bellossom": 182, "Marill": 183, "Azumarill": 184, "Sudowoodo": 185, "Politoed": 186, "Hoppip": 187, "Skiploom": 188, "Jumpluff": 189, "Aipom": 190, "Sunkern": 191, "Sunflora": 192, "Yanma": 193, "Wooper": 194, "Quagsire": 195, "Espeon": 196, "Umbreon": 197, "Murkrow": 198, "Slowking": 199, "Misdreavus": 200, "Unown": 201, "Wobbuffet": 202, "Girafarig": 203, "Pineco": 204, "Forretress": 205, "Dunsparce": 206, "Gligar": 207, "Steelix": 208, "Snubbull": 209, "Granbull": 210, "Qwilfish": 211, "Scizor": 212, "Shuckle": 213, "Heracross": 214, "Sneasel": 215, "Teddiursa": 216, "Ursaring": 217, "Slugma": 218, "Magcargo": 219, "Swinub": 220, "Piloswine": 221, "Corsola": 222, "Remoraid": 223, "Octillery": 224, "Delibird": 225, "Mantine": 226, "Skarmory": 227, "Houndour": 228, "Houndoom": 229, "Kingdra": 230, "Phanpy": 231, "Donphan": 232, "Porygon2": 233, "Stantler": 234, "Smeargle": 235, "Tyrogue": 236, "Hitmontop": 237, "Smoochum": 238, "Elekid": 239, "Magby": 240, "Miltank": 241, "Blissey": 242, "Raikou": 243, "Entei": 244, "Suicune": 245, "Larvitar": 246, "Pupitar": 247, "Tyranitar": 248, "Lugia": 249, "Ho-Oh": 250, "Celebi": 251, "Treecko": 252, "Grovyle": 253, "Sceptile": 254, "Torchic": 255, "Combusken": 256, "Blaziken": 257, "Mudkip": 258, "Marshtomp": 259, "Swampert": 260, "Poochyena": 261, "Mightyena": 262, "Zigzagoon": 263, "Linoone": 264, "Wurmple": 265, "Silcoon": 266, "Beautifly": 267, "Cascoon": 268, "Dustox": 269, "Lotad": 270, "Lombre": 271, "Ludicolo": 272, "Seedot": 273, "Nuzleaf": 274, "Shiftry": 275, "Taillow": 276, "Swellow": 277, "Wingull": 278, "Pelipper": 279, "Ralts": 280, "Kirlia": 281, "Gardevoir": 282, "Surskit": 283, "Masquerain": 284, "Shroomish": 285, "Breloom": 286, "Slakoth": 287, "Vigoroth": 288, "Slaking": 289, "Nincada": 290, "Ninjask": 291, "Shedinja": 292, "Whismur": 293, "Loudred": 294, "Exploud": 295, "Makuhita": 296, "Hariyama": 297, "Azurill": 298, "Nosepass": 299, "Skitty": 300, "Delcatty": 301, "Sableye": 302, "Mawile": 303, "Aron": 304, "Lairon": 305, "Aggron": 306, "Meditite": 307, "Medicham": 308, "Electrike": 309, "Manectric": 310, "Plusle": 311, "Minun": 312, "Volbeat": 313, "Illumise": 314, "Roselia": 315, "Gulpin": 316, "Swalot": 317, "Carvanha": 318, "Sharpedo": 319, "Wailmer": 320, "Wailord": 321, "Numel": 322, "Camerupt": 323, "Torkoal": 324, "Spoink": 325, "Grumpig": 326, "Spinda": 327, "Trapinch": 328, "Vibrava": 329, "Flygon": 330, "Cacnea": 331, "Cacturne": 332, "Swablu": 333, "Altaria": 334, "Zangoose": 335, "Seviper": 336, "Lunatone": 337, "Solrock": 338, "Barboach": 339, "Whiscash": 340, "Corphish": 341, "Crawdaunt": 342, "Baltoy": 343, "Claydol": 344, "Lileep": 345, "Cradily": 346, "Anorith": 347, "Armaldo": 348, "Feebas": 349, "Milotic": 350, "Castform": 351, "Kecleon": 352, "Shuppet": 353, "Banette": 354, "Duskull": 355, "Dusclops": 356, "Tropius": 357, "Chimecho": 358, "Absol": 359, "Wynaut": 360, "Snorunt": 361, "Glalie": 362, "Spheal": 363, "Sealeo": 364, "Walrein": 365, "Clamperl": 366, "Huntail": 367, "Gorebyss": 368, "Relicanth": 369, "Luvdisc": 370, "Bagon": 371, "Shelgon": 372, "Salamence": 373, "Beldum": 374, "Metang": 375, "Metagross": 376, "Regirock": 377, "Regice": 378, "Registeel": 379, "Latias": 380, "Latios": 381, "Kyogre": 382, "Groudon": 383, "Rayquaza": 384, "Jirachi": 385, "Deoxys": 386, "Turtwig": 387, "Grotle": 388, "Torterra": 389, "Chimchar": 390, "Monferno": 391, "Infernape": 392, "Piplup": 393, "Prinplup": 394, "Empoleon": 395, "Starly": 396, "Staravia": 397, "Staraptor": 398, "Bidoof": 399, "Bibarel": 400, "Kricketot": 401, "Kricketune": 402, "Shinx": 403, "Luxio": 404, "Luxray": 405, "Budew": 406, "Roserade": 407, "Cranidos": 408, "Rampardos": 409, "Shieldon": 410, "Bastiodon": 411, "Burmy": 412, "Wormadam": 413, "Mothim": 414, "Combee": 415, "Vespiquen": 416, "Pachirisu": 417, "Buizel": 418, "Floatzel": 419, "Cherubi": 420, "Cherrim": 421, "Shellos": 422, "Gastrodon": 423, "Ambipom": 424, "Drifloon": 425, "Drifblim": 426, "Buneary": 427, "Lopunny": 428, "Mismagius": 429, "Honchkrow": 430, "Glameow": 431, "Purugly": 432, "Chingling": 433, "Stunky": 434, "Skuntank": 435, "Bronzor": 436, "Bronzong": 437, "Bonsly": 438, "Mime Jr.": 439, "Happiny": 440, "Chatot": 441, "Spiritomb": 442, "Gible": 443, "Gabite": 444, "Garchomp": 445, "Munchlax": 446, "Riolu": 447, "Lucario": 448, "Hippopotas": 449, "Hippowdon": 450, "Skorupi": 451, "Drapion": 452, "Croagunk": 453, "Toxicroak": 454, "Carnivine": 455, "Finneon": 456, "Lumineon": 457, "Mantyke": 458, "Snover": 459, "Abomasnow": 460, "Weavile": 461, "Magnezone": 462, "Lickilicky": 463, "Rhyperior": 464, "Tangrowth": 465, "Electivire": 466, "Magmortar": 467, "Togekiss": 468, "Yanmega": 469, "Leafeon": 470, "Glaceon": 471, "Gliscor": 472, "Mamoswine": 473, "Porygon-Z": 474, "Gallade": 475, "Probopass": 476, "Dusknoir": 477, "Froslass": 478, "Rotom": 479, "Uxie": 480, "Mesprit": 481, "Azelf": 482, "Dialga": 483, "Palkia": 484, "Heatran": 485, "Regigigas": 486, "Giratina": 487, "Cresselia": 488, "Phione": 489, "Manaphy": 490, "Darkrai": 491, "Shaymin": 492, "Arceus": 493} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_5.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_5.json new file mode 100644 index 0000000..706f4a3 --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_5.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151, "Chikorita": 152, "Bayleef": 153, "Meganium": 154, "Cyndaquil": 155, "Quilava": 156, "Typhlosion": 157, "Totodile": 158, "Croconaw": 159, "Feraligatr": 160, "Sentret": 161, "Furret": 162, "Hoothoot": 163, "Noctowl": 164, "Ledyba": 165, "Ledian": 166, "Spinarak": 167, "Ariados": 168, "Crobat": 169, "Chinchou": 170, "Lanturn": 171, "Pichu": 172, "Cleffa": 173, "Igglybuff": 174, "Togepi": 175, "Togetic": 176, "Natu": 177, "Xatu": 178, "Mareep": 179, "Flaaffy": 180, "Ampharos": 181, "Bellossom": 182, "Marill": 183, "Azumarill": 184, "Sudowoodo": 185, "Politoed": 186, "Hoppip": 187, "Skiploom": 188, "Jumpluff": 189, "Aipom": 190, "Sunkern": 191, "Sunflora": 192, "Yanma": 193, "Wooper": 194, "Quagsire": 195, "Espeon": 196, "Umbreon": 197, "Murkrow": 198, "Slowking": 199, "Misdreavus": 200, "Unown": 201, "Wobbuffet": 202, "Girafarig": 203, "Pineco": 204, "Forretress": 205, "Dunsparce": 206, "Gligar": 207, "Steelix": 208, "Snubbull": 209, "Granbull": 210, "Qwilfish": 211, "Scizor": 212, "Shuckle": 213, "Heracross": 214, "Sneasel": 215, "Teddiursa": 216, "Ursaring": 217, "Slugma": 218, "Magcargo": 219, "Swinub": 220, "Piloswine": 221, "Corsola": 222, "Remoraid": 223, "Octillery": 224, "Delibird": 225, "Mantine": 226, "Skarmory": 227, "Houndour": 228, "Houndoom": 229, "Kingdra": 230, "Phanpy": 231, "Donphan": 232, "Porygon2": 233, "Stantler": 234, "Smeargle": 235, "Tyrogue": 236, "Hitmontop": 237, "Smoochum": 238, "Elekid": 239, "Magby": 240, "Miltank": 241, "Blissey": 242, "Raikou": 243, "Entei": 244, "Suicune": 245, "Larvitar": 246, "Pupitar": 247, "Tyranitar": 248, "Lugia": 249, "Ho-Oh": 250, "Celebi": 251, "Treecko": 252, "Grovyle": 253, "Sceptile": 254, "Torchic": 255, "Combusken": 256, "Blaziken": 257, "Mudkip": 258, "Marshtomp": 259, "Swampert": 260, "Poochyena": 261, "Mightyena": 262, "Zigzagoon": 263, "Linoone": 264, "Wurmple": 265, "Silcoon": 266, "Beautifly": 267, "Cascoon": 268, "Dustox": 269, "Lotad": 270, "Lombre": 271, "Ludicolo": 272, "Seedot": 273, "Nuzleaf": 274, "Shiftry": 275, "Taillow": 276, "Swellow": 277, "Wingull": 278, "Pelipper": 279, "Ralts": 280, "Kirlia": 281, "Gardevoir": 282, "Surskit": 283, "Masquerain": 284, "Shroomish": 285, "Breloom": 286, "Slakoth": 287, "Vigoroth": 288, "Slaking": 289, "Nincada": 290, "Ninjask": 291, "Shedinja": 292, "Whismur": 293, "Loudred": 294, "Exploud": 295, "Makuhita": 296, "Hariyama": 297, "Azurill": 298, "Nosepass": 299, "Skitty": 300, "Delcatty": 301, "Sableye": 302, "Mawile": 303, "Aron": 304, "Lairon": 305, "Aggron": 306, "Meditite": 307, "Medicham": 308, "Electrike": 309, "Manectric": 310, "Plusle": 311, "Minun": 312, "Volbeat": 313, "Illumise": 314, "Roselia": 315, "Gulpin": 316, "Swalot": 317, "Carvanha": 318, "Sharpedo": 319, "Wailmer": 320, "Wailord": 321, "Numel": 322, "Camerupt": 323, "Torkoal": 324, "Spoink": 325, "Grumpig": 326, "Spinda": 327, "Trapinch": 328, "Vibrava": 329, "Flygon": 330, "Cacnea": 331, "Cacturne": 332, "Swablu": 333, "Altaria": 334, "Zangoose": 335, "Seviper": 336, "Lunatone": 337, "Solrock": 338, "Barboach": 339, "Whiscash": 340, "Corphish": 341, "Crawdaunt": 342, "Baltoy": 343, "Claydol": 344, "Lileep": 345, "Cradily": 346, "Anorith": 347, "Armaldo": 348, "Feebas": 349, "Milotic": 350, "Castform": 351, "Kecleon": 352, "Shuppet": 353, "Banette": 354, "Duskull": 355, "Dusclops": 356, "Tropius": 357, "Chimecho": 358, "Absol": 359, "Wynaut": 360, "Snorunt": 361, "Glalie": 362, "Spheal": 363, "Sealeo": 364, "Walrein": 365, "Clamperl": 366, "Huntail": 367, "Gorebyss": 368, "Relicanth": 369, "Luvdisc": 370, "Bagon": 371, "Shelgon": 372, "Salamence": 373, "Beldum": 374, "Metang": 375, "Metagross": 376, "Regirock": 377, "Regice": 378, "Registeel": 379, "Latias": 380, "Latios": 381, "Kyogre": 382, "Groudon": 383, "Rayquaza": 384, "Jirachi": 385, "Deoxys": 386, "Turtwig": 387, "Grotle": 388, "Torterra": 389, "Chimchar": 390, "Monferno": 391, "Infernape": 392, "Piplup": 393, "Prinplup": 394, "Empoleon": 395, "Starly": 396, "Staravia": 397, "Staraptor": 398, "Bidoof": 399, "Bibarel": 400, "Kricketot": 401, "Kricketune": 402, "Shinx": 403, "Luxio": 404, "Luxray": 405, "Budew": 406, "Roserade": 407, "Cranidos": 408, "Rampardos": 409, "Shieldon": 410, "Bastiodon": 411, "Burmy": 412, "Wormadam": 413, "Mothim": 414, "Combee": 415, "Vespiquen": 416, "Pachirisu": 417, "Buizel": 418, "Floatzel": 419, "Cherubi": 420, "Cherrim": 421, "Shellos": 422, "Gastrodon": 423, "Ambipom": 424, "Drifloon": 425, "Drifblim": 426, "Buneary": 427, "Lopunny": 428, "Mismagius": 429, "Honchkrow": 430, "Glameow": 431, "Purugly": 432, "Chingling": 433, "Stunky": 434, "Skuntank": 435, "Bronzor": 436, "Bronzong": 437, "Bonsly": 438, "Mime Jr.": 439, "Happiny": 440, "Chatot": 441, "Spiritomb": 442, "Gible": 443, "Gabite": 444, "Garchomp": 445, "Munchlax": 446, "Riolu": 447, "Lucario": 448, "Hippopotas": 449, "Hippowdon": 450, "Skorupi": 451, "Drapion": 452, "Croagunk": 453, "Toxicroak": 454, "Carnivine": 455, "Finneon": 456, "Lumineon": 457, "Mantyke": 458, "Snover": 459, "Abomasnow": 460, "Weavile": 461, "Magnezone": 462, "Lickilicky": 463, "Rhyperior": 464, "Tangrowth": 465, "Electivire": 466, "Magmortar": 467, "Togekiss": 468, "Yanmega": 469, "Leafeon": 470, "Glaceon": 471, "Gliscor": 472, "Mamoswine": 473, "Porygon-Z": 474, "Gallade": 475, "Probopass": 476, "Dusknoir": 477, "Froslass": 478, "Rotom": 479, "Uxie": 480, "Mesprit": 481, "Azelf": 482, "Dialga": 483, "Palkia": 484, "Heatran": 485, "Regigigas": 486, "Giratina": 487, "Cresselia": 488, "Phione": 489, "Manaphy": 490, "Darkrai": 491, "Shaymin": 492, "Arceus": 493, "Victini": 494, "Snivy": 495, "Servine": 496, "Serperior": 497, "Tepig": 498, "Pignite": 499, "Emboar": 500, "Oshawott": 501, "Dewott": 502, "Samurott": 503, "Patrat": 504, "Watchog": 505, "Lillipup": 506, "Herdier": 507, "Stoutland": 508, "Purrloin": 509, "Liepard": 510, "Pansage": 511, "Simisage": 512, "Pansear": 513, "Simisear": 514, "Panpour": 515, "Simipour": 516, "Munna": 517, "Musharna": 518, "Pidove": 519, "Tranquill": 520, "Unfezant": 521, "Blitzle": 522, "Zebstrika": 523, "Roggenrola": 524, "Boldore": 525, "Gigalith": 526, "Woobat": 527, "Swoobat": 528, "Drilbur": 529, "Excadrill": 530, "Audino": 531, "Timburr": 532, "Gurdurr": 533, "Conkeldurr": 534, "Tympole": 535, "Palpitoad": 536, "Seismitoad": 537, "Throh": 538, "Sawk": 539, "Sewaddle": 540, "Swadloon": 541, "Leavanny": 542, "Venipede": 543, "Whirlipede": 544, "Scolipede": 545, "Cottonee": 546, "Whimsicott": 547, "Petilil": 548, "Lilligant": 549, "Basculin": 550, "Sandile": 551, "Krokorok": 552, "Krookodile": 553, "Darumaka": 554, "Darmanitan": 555, "Maractus": 556, "Dwebble": 557, "Crustle": 558, "Scraggy": 559, "Scrafty": 560, "Sigilyph": 561, "Yamask": 562, "Cofagrigus": 563, "Tirtouga": 564, "Carracosta": 565, "Archen": 566, "Archeops": 567, "Trubbish": 568, "Garbodor": 569, "Zorua": 570, "Zoroark": 571, "Minccino": 572, "Cinccino": 573, "Gothita": 574, "Gothorita": 575, "Gothitelle": 576, "Solosis": 577, "Duosion": 578, "Reuniclus": 579, "Ducklett": 580, "Swanna": 581, "Vanillite": 582, "Vanillish": 583, "Vanilluxe": 584, "Deerling": 585, "Sawsbuck": 586, "Emolga": 587, "Karrablast": 588, "Escavalier": 589, "Foongus": 590, "Amoonguss": 591, "Frillish": 592, "Jellicent": 593, "Alomomola": 594, "Joltik": 595, "Galvantula": 596, "Ferroseed": 597, "Ferrothorn": 598, "Klink": 599, "Klang": 600, "Klinklang": 601, "Tynamo": 602, "Eelektrik": 603, "Eelektross": 604, "Elgyem": 605, "Beheeyem": 606, "Litwick": 607, "Lampent": 608, "Chandelure": 609, "Axew": 610, "Fraxure": 611, "Haxorus": 612, "Cubchoo": 613, "Beartic": 614, "Cryogonal": 615, "Shelmet": 616, "Accelgor": 617, "Stunfisk": 618, "Mienfoo": 619, "Mienshao": 620, "Druddigon": 621, "Golett": 622, "Golurk": 623, "Pawniard": 624, "Bisharp": 625, "Bouffalant": 626, "Rufflet": 627, "Braviary": 628, "Vullaby": 629, "Mandibuzz": 630, "Heatmor": 631, "Durant": 632, "Deino": 633, "Zweilous": 634, "Hydreigon": 635, "Larvesta": 636, "Volcarona": 637, "Cobalion": 638, "Terrakion": 639, "Virizion": 640, "Tornadus": 641, "Thundurus": 642, "Reshiram": 643, "Zekrom": 644, "Landorus": 645, "Kyurem": 646, "Keldeo": 647, "Meloetta": 648, "Genesect": 649} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_6.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_6.json new file mode 100644 index 0000000..1ffb6bc --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_6.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151, "Chikorita": 152, "Bayleef": 153, "Meganium": 154, "Cyndaquil": 155, "Quilava": 156, "Typhlosion": 157, "Totodile": 158, "Croconaw": 159, "Feraligatr": 160, "Sentret": 161, "Furret": 162, "Hoothoot": 163, "Noctowl": 164, "Ledyba": 165, "Ledian": 166, "Spinarak": 167, "Ariados": 168, "Crobat": 169, "Chinchou": 170, "Lanturn": 171, "Pichu": 172, "Cleffa": 173, "Igglybuff": 174, "Togepi": 175, "Togetic": 176, "Natu": 177, "Xatu": 178, "Mareep": 179, "Flaaffy": 180, "Ampharos": 181, "Bellossom": 182, "Marill": 183, "Azumarill": 184, "Sudowoodo": 185, "Politoed": 186, "Hoppip": 187, "Skiploom": 188, "Jumpluff": 189, "Aipom": 190, "Sunkern": 191, "Sunflora": 192, "Yanma": 193, "Wooper": 194, "Quagsire": 195, "Espeon": 196, "Umbreon": 197, "Murkrow": 198, "Slowking": 199, "Misdreavus": 200, "Unown": 201, "Wobbuffet": 202, "Girafarig": 203, "Pineco": 204, "Forretress": 205, "Dunsparce": 206, "Gligar": 207, "Steelix": 208, "Snubbull": 209, "Granbull": 210, "Qwilfish": 211, "Scizor": 212, "Shuckle": 213, "Heracross": 214, "Sneasel": 215, "Teddiursa": 216, "Ursaring": 217, "Slugma": 218, "Magcargo": 219, "Swinub": 220, "Piloswine": 221, "Corsola": 222, "Remoraid": 223, "Octillery": 224, "Delibird": 225, "Mantine": 226, "Skarmory": 227, "Houndour": 228, "Houndoom": 229, "Kingdra": 230, "Phanpy": 231, "Donphan": 232, "Porygon2": 233, "Stantler": 234, "Smeargle": 235, "Tyrogue": 236, "Hitmontop": 237, "Smoochum": 238, "Elekid": 239, "Magby": 240, "Miltank": 241, "Blissey": 242, "Raikou": 243, "Entei": 244, "Suicune": 245, "Larvitar": 246, "Pupitar": 247, "Tyranitar": 248, "Lugia": 249, "Ho-Oh": 250, "Celebi": 251, "Treecko": 252, "Grovyle": 253, "Sceptile": 254, "Torchic": 255, "Combusken": 256, "Blaziken": 257, "Mudkip": 258, "Marshtomp": 259, "Swampert": 260, "Poochyena": 261, "Mightyena": 262, "Zigzagoon": 263, "Linoone": 264, "Wurmple": 265, "Silcoon": 266, "Beautifly": 267, "Cascoon": 268, "Dustox": 269, "Lotad": 270, "Lombre": 271, "Ludicolo": 272, "Seedot": 273, "Nuzleaf": 274, "Shiftry": 275, "Taillow": 276, "Swellow": 277, "Wingull": 278, "Pelipper": 279, "Ralts": 280, "Kirlia": 281, "Gardevoir": 282, "Surskit": 283, "Masquerain": 284, "Shroomish": 285, "Breloom": 286, "Slakoth": 287, "Vigoroth": 288, "Slaking": 289, "Nincada": 290, "Ninjask": 291, "Shedinja": 292, "Whismur": 293, "Loudred": 294, "Exploud": 295, "Makuhita": 296, "Hariyama": 297, "Azurill": 298, "Nosepass": 299, "Skitty": 300, "Delcatty": 301, "Sableye": 302, "Mawile": 303, "Aron": 304, "Lairon": 305, "Aggron": 306, "Meditite": 307, "Medicham": 308, "Electrike": 309, "Manectric": 310, "Plusle": 311, "Minun": 312, "Volbeat": 313, "Illumise": 314, "Roselia": 315, "Gulpin": 316, "Swalot": 317, "Carvanha": 318, "Sharpedo": 319, "Wailmer": 320, "Wailord": 321, "Numel": 322, "Camerupt": 323, "Torkoal": 324, "Spoink": 325, "Grumpig": 326, "Spinda": 327, "Trapinch": 328, "Vibrava": 329, "Flygon": 330, "Cacnea": 331, "Cacturne": 332, "Swablu": 333, "Altaria": 334, "Zangoose": 335, "Seviper": 336, "Lunatone": 337, "Solrock": 338, "Barboach": 339, "Whiscash": 340, "Corphish": 341, "Crawdaunt": 342, "Baltoy": 343, "Claydol": 344, "Lileep": 345, "Cradily": 346, "Anorith": 347, "Armaldo": 348, "Feebas": 349, "Milotic": 350, "Castform": 351, "Kecleon": 352, "Shuppet": 353, "Banette": 354, "Duskull": 355, "Dusclops": 356, "Tropius": 357, "Chimecho": 358, "Absol": 359, "Wynaut": 360, "Snorunt": 361, "Glalie": 362, "Spheal": 363, "Sealeo": 364, "Walrein": 365, "Clamperl": 366, "Huntail": 367, "Gorebyss": 368, "Relicanth": 369, "Luvdisc": 370, "Bagon": 371, "Shelgon": 372, "Salamence": 373, "Beldum": 374, "Metang": 375, "Metagross": 376, "Regirock": 377, "Regice": 378, "Registeel": 379, "Latias": 380, "Latios": 381, "Kyogre": 382, "Groudon": 383, "Rayquaza": 384, "Jirachi": 385, "Deoxys": 386, "Turtwig": 387, "Grotle": 388, "Torterra": 389, "Chimchar": 390, "Monferno": 391, "Infernape": 392, "Piplup": 393, "Prinplup": 394, "Empoleon": 395, "Starly": 396, "Staravia": 397, "Staraptor": 398, "Bidoof": 399, "Bibarel": 400, "Kricketot": 401, "Kricketune": 402, "Shinx": 403, "Luxio": 404, "Luxray": 405, "Budew": 406, "Roserade": 407, "Cranidos": 408, "Rampardos": 409, "Shieldon": 410, "Bastiodon": 411, "Burmy": 412, "Wormadam": 413, "Mothim": 414, "Combee": 415, "Vespiquen": 416, "Pachirisu": 417, "Buizel": 418, "Floatzel": 419, "Cherubi": 420, "Cherrim": 421, "Shellos": 422, "Gastrodon": 423, "Ambipom": 424, "Drifloon": 425, "Drifblim": 426, "Buneary": 427, "Lopunny": 428, "Mismagius": 429, "Honchkrow": 430, "Glameow": 431, "Purugly": 432, "Chingling": 433, "Stunky": 434, "Skuntank": 435, "Bronzor": 436, "Bronzong": 437, "Bonsly": 438, "Mime Jr.": 439, "Happiny": 440, "Chatot": 441, "Spiritomb": 442, "Gible": 443, "Gabite": 444, "Garchomp": 445, "Munchlax": 446, "Riolu": 447, "Lucario": 448, "Hippopotas": 449, "Hippowdon": 450, "Skorupi": 451, "Drapion": 452, "Croagunk": 453, "Toxicroak": 454, "Carnivine": 455, "Finneon": 456, "Lumineon": 457, "Mantyke": 458, "Snover": 459, "Abomasnow": 460, "Weavile": 461, "Magnezone": 462, "Lickilicky": 463, "Rhyperior": 464, "Tangrowth": 465, "Electivire": 466, "Magmortar": 467, "Togekiss": 468, "Yanmega": 469, "Leafeon": 470, "Glaceon": 471, "Gliscor": 472, "Mamoswine": 473, "Porygon-Z": 474, "Gallade": 475, "Probopass": 476, "Dusknoir": 477, "Froslass": 478, "Rotom": 479, "Uxie": 480, "Mesprit": 481, "Azelf": 482, "Dialga": 483, "Palkia": 484, "Heatran": 485, "Regigigas": 486, "Giratina": 487, "Cresselia": 488, "Phione": 489, "Manaphy": 490, "Darkrai": 491, "Shaymin": 492, "Arceus": 493, "Victini": 494, "Snivy": 495, "Servine": 496, "Serperior": 497, "Tepig": 498, "Pignite": 499, "Emboar": 500, "Oshawott": 501, "Dewott": 502, "Samurott": 503, "Patrat": 504, "Watchog": 505, "Lillipup": 506, "Herdier": 507, "Stoutland": 508, "Purrloin": 509, "Liepard": 510, "Pansage": 511, "Simisage": 512, "Pansear": 513, "Simisear": 514, "Panpour": 515, "Simipour": 516, "Munna": 517, "Musharna": 518, "Pidove": 519, "Tranquill": 520, "Unfezant": 521, "Blitzle": 522, "Zebstrika": 523, "Roggenrola": 524, "Boldore": 525, "Gigalith": 526, "Woobat": 527, "Swoobat": 528, "Drilbur": 529, "Excadrill": 530, "Audino": 531, "Timburr": 532, "Gurdurr": 533, "Conkeldurr": 534, "Tympole": 535, "Palpitoad": 536, "Seismitoad": 537, "Throh": 538, "Sawk": 539, "Sewaddle": 540, "Swadloon": 541, "Leavanny": 542, "Venipede": 543, "Whirlipede": 544, "Scolipede": 545, "Cottonee": 546, "Whimsicott": 547, "Petilil": 548, "Lilligant": 549, "Basculin": 550, "Sandile": 551, "Krokorok": 552, "Krookodile": 553, "Darumaka": 554, "Darmanitan": 555, "Maractus": 556, "Dwebble": 557, "Crustle": 558, "Scraggy": 559, "Scrafty": 560, "Sigilyph": 561, "Yamask": 562, "Cofagrigus": 563, "Tirtouga": 564, "Carracosta": 565, "Archen": 566, "Archeops": 567, "Trubbish": 568, "Garbodor": 569, "Zorua": 570, "Zoroark": 571, "Minccino": 572, "Cinccino": 573, "Gothita": 574, "Gothorita": 575, "Gothitelle": 576, "Solosis": 577, "Duosion": 578, "Reuniclus": 579, "Ducklett": 580, "Swanna": 581, "Vanillite": 582, "Vanillish": 583, "Vanilluxe": 584, "Deerling": 585, "Sawsbuck": 586, "Emolga": 587, "Karrablast": 588, "Escavalier": 589, "Foongus": 590, "Amoonguss": 591, "Frillish": 592, "Jellicent": 593, "Alomomola": 594, "Joltik": 595, "Galvantula": 596, "Ferroseed": 597, "Ferrothorn": 598, "Klink": 599, "Klang": 600, "Klinklang": 601, "Tynamo": 602, "Eelektrik": 603, "Eelektross": 604, "Elgyem": 605, "Beheeyem": 606, "Litwick": 607, "Lampent": 608, "Chandelure": 609, "Axew": 610, "Fraxure": 611, "Haxorus": 612, "Cubchoo": 613, "Beartic": 614, "Cryogonal": 615, "Shelmet": 616, "Accelgor": 617, "Stunfisk": 618, "Mienfoo": 619, "Mienshao": 620, "Druddigon": 621, "Golett": 622, "Golurk": 623, "Pawniard": 624, "Bisharp": 625, "Bouffalant": 626, "Rufflet": 627, "Braviary": 628, "Vullaby": 629, "Mandibuzz": 630, "Heatmor": 631, "Durant": 632, "Deino": 633, "Zweilous": 634, "Hydreigon": 635, "Larvesta": 636, "Volcarona": 637, "Cobalion": 638, "Terrakion": 639, "Virizion": 640, "Tornadus": 641, "Thundurus": 642, "Reshiram": 643, "Zekrom": 644, "Landorus": 645, "Kyurem": 646, "Keldeo": 647, "Meloetta": 648, "Genesect": 649, "Chespin": 650, "Quilladin": 651, "Chesnaught": 652, "Fennekin": 653, "Braixen": 654, "Delphox": 655, "Froakie": 656, "Frogadier": 657, "Greninja": 658, "Bunnelby": 659, "Diggersby": 660, "Fletchling": 661, "Fletchinder": 662, "Talonflame": 663, "Scatterbug": 664, "Spewpa": 665, "Vivillon": 666, "Litleo": 667, "Pyroar": 668, "Flab\u00e9b\u00e9": 669, "Floette": 670, "Florges": 671, "Skiddo": 672, "Gogoat": 673, "Pancham": 674, "Pangoro": 675, "Furfrou": 676, "Espurr": 677, "Meowstic": 678, "Honedge": 679, "Doublade": 680, "Aegislash": 681, "Spritzee": 682, "Aromatisse": 683, "Swirlix": 684, "Slurpuff": 685, "Inkay": 686, "Malamar": 687, "Binacle": 688, "Barbaracle": 689, "Skrelp": 690, "Dragalge": 691, "Clauncher": 692, "Clawitzer": 693, "Helioptile": 694, "Heliolisk": 695, "Tyrunt": 696, "Tyrantrum": 697, "Amaura": 698, "Aurorus": 699, "Sylveon": 700, "Hawlucha": 701, "Dedenne": 702, "Carbink": 703, "Goomy": 704, "Sliggoo": 705, "Goodra": 706, "Klefki": 707, "Phantump": 708, "Trevenant": 709, "Pumpkaboo": 710, "Gourgeist": 711, "Bergmite": 712, "Avalugg": 713, "Noibat": 714, "Noivern": 715, "Xerneas": 716, "Yveltal": 717, "Zygarde": 718, "Diancie": 719, "Hoopa": 720, "Volcanion": 721} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_7.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_7.json new file mode 100644 index 0000000..142ceeb --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_7.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151, "Chikorita": 152, "Bayleef": 153, "Meganium": 154, "Cyndaquil": 155, "Quilava": 156, "Typhlosion": 157, "Totodile": 158, "Croconaw": 159, "Feraligatr": 160, "Sentret": 161, "Furret": 162, "Hoothoot": 163, "Noctowl": 164, "Ledyba": 165, "Ledian": 166, "Spinarak": 167, "Ariados": 168, "Crobat": 169, "Chinchou": 170, "Lanturn": 171, "Pichu": 172, "Cleffa": 173, "Igglybuff": 174, "Togepi": 175, "Togetic": 176, "Natu": 177, "Xatu": 178, "Mareep": 179, "Flaaffy": 180, "Ampharos": 181, "Bellossom": 182, "Marill": 183, "Azumarill": 184, "Sudowoodo": 185, "Politoed": 186, "Hoppip": 187, "Skiploom": 188, "Jumpluff": 189, "Aipom": 190, "Sunkern": 191, "Sunflora": 192, "Yanma": 193, "Wooper": 194, "Quagsire": 195, "Espeon": 196, "Umbreon": 197, "Murkrow": 198, "Slowking": 199, "Misdreavus": 200, "Unown": 201, "Wobbuffet": 202, "Girafarig": 203, "Pineco": 204, "Forretress": 205, "Dunsparce": 206, "Gligar": 207, "Steelix": 208, "Snubbull": 209, "Granbull": 210, "Qwilfish": 211, "Scizor": 212, "Shuckle": 213, "Heracross": 214, "Sneasel": 215, "Teddiursa": 216, "Ursaring": 217, "Slugma": 218, "Magcargo": 219, "Swinub": 220, "Piloswine": 221, "Corsola": 222, "Remoraid": 223, "Octillery": 224, "Delibird": 225, "Mantine": 226, "Skarmory": 227, "Houndour": 228, "Houndoom": 229, "Kingdra": 230, "Phanpy": 231, "Donphan": 232, "Porygon2": 233, "Stantler": 234, "Smeargle": 235, "Tyrogue": 236, "Hitmontop": 237, "Smoochum": 238, "Elekid": 239, "Magby": 240, "Miltank": 241, "Blissey": 242, "Raikou": 243, "Entei": 244, "Suicune": 245, "Larvitar": 246, "Pupitar": 247, "Tyranitar": 248, "Lugia": 249, "Ho-Oh": 250, "Celebi": 251, "Treecko": 252, "Grovyle": 253, "Sceptile": 254, "Torchic": 255, "Combusken": 256, "Blaziken": 257, "Mudkip": 258, "Marshtomp": 259, "Swampert": 260, "Poochyena": 261, "Mightyena": 262, "Zigzagoon": 263, "Linoone": 264, "Wurmple": 265, "Silcoon": 266, "Beautifly": 267, "Cascoon": 268, "Dustox": 269, "Lotad": 270, "Lombre": 271, "Ludicolo": 272, "Seedot": 273, "Nuzleaf": 274, "Shiftry": 275, "Taillow": 276, "Swellow": 277, "Wingull": 278, "Pelipper": 279, "Ralts": 280, "Kirlia": 281, "Gardevoir": 282, "Surskit": 283, "Masquerain": 284, "Shroomish": 285, "Breloom": 286, "Slakoth": 287, "Vigoroth": 288, "Slaking": 289, "Nincada": 290, "Ninjask": 291, "Shedinja": 292, "Whismur": 293, "Loudred": 294, "Exploud": 295, "Makuhita": 296, "Hariyama": 297, "Azurill": 298, "Nosepass": 299, "Skitty": 300, "Delcatty": 301, "Sableye": 302, "Mawile": 303, "Aron": 304, "Lairon": 305, "Aggron": 306, "Meditite": 307, "Medicham": 308, "Electrike": 309, "Manectric": 310, "Plusle": 311, "Minun": 312, "Volbeat": 313, "Illumise": 314, "Roselia": 315, "Gulpin": 316, "Swalot": 317, "Carvanha": 318, "Sharpedo": 319, "Wailmer": 320, "Wailord": 321, "Numel": 322, "Camerupt": 323, "Torkoal": 324, "Spoink": 325, "Grumpig": 326, "Spinda": 327, "Trapinch": 328, "Vibrava": 329, "Flygon": 330, "Cacnea": 331, "Cacturne": 332, "Swablu": 333, "Altaria": 334, "Zangoose": 335, "Seviper": 336, "Lunatone": 337, "Solrock": 338, "Barboach": 339, "Whiscash": 340, "Corphish": 341, "Crawdaunt": 342, "Baltoy": 343, "Claydol": 344, "Lileep": 345, "Cradily": 346, "Anorith": 347, "Armaldo": 348, "Feebas": 349, "Milotic": 350, "Castform": 351, "Kecleon": 352, "Shuppet": 353, "Banette": 354, "Duskull": 355, "Dusclops": 356, "Tropius": 357, "Chimecho": 358, "Absol": 359, "Wynaut": 360, "Snorunt": 361, "Glalie": 362, "Spheal": 363, "Sealeo": 364, "Walrein": 365, "Clamperl": 366, "Huntail": 367, "Gorebyss": 368, "Relicanth": 369, "Luvdisc": 370, "Bagon": 371, "Shelgon": 372, "Salamence": 373, "Beldum": 374, "Metang": 375, "Metagross": 376, "Regirock": 377, "Regice": 378, "Registeel": 379, "Latias": 380, "Latios": 381, "Kyogre": 382, "Groudon": 383, "Rayquaza": 384, "Jirachi": 385, "Deoxys": 386, "Turtwig": 387, "Grotle": 388, "Torterra": 389, "Chimchar": 390, "Monferno": 391, "Infernape": 392, "Piplup": 393, "Prinplup": 394, "Empoleon": 395, "Starly": 396, "Staravia": 397, "Staraptor": 398, "Bidoof": 399, "Bibarel": 400, "Kricketot": 401, "Kricketune": 402, "Shinx": 403, "Luxio": 404, "Luxray": 405, "Budew": 406, "Roserade": 407, "Cranidos": 408, "Rampardos": 409, "Shieldon": 410, "Bastiodon": 411, "Burmy": 412, "Wormadam": 413, "Mothim": 414, "Combee": 415, "Vespiquen": 416, "Pachirisu": 417, "Buizel": 418, "Floatzel": 419, "Cherubi": 420, "Cherrim": 421, "Shellos": 422, "Gastrodon": 423, "Ambipom": 424, "Drifloon": 425, "Drifblim": 426, "Buneary": 427, "Lopunny": 428, "Mismagius": 429, "Honchkrow": 430, "Glameow": 431, "Purugly": 432, "Chingling": 433, "Stunky": 434, "Skuntank": 435, "Bronzor": 436, "Bronzong": 437, "Bonsly": 438, "Mime Jr.": 439, "Happiny": 440, "Chatot": 441, "Spiritomb": 442, "Gible": 443, "Gabite": 444, "Garchomp": 445, "Munchlax": 446, "Riolu": 447, "Lucario": 448, "Hippopotas": 449, "Hippowdon": 450, "Skorupi": 451, "Drapion": 452, "Croagunk": 453, "Toxicroak": 454, "Carnivine": 455, "Finneon": 456, "Lumineon": 457, "Mantyke": 458, "Snover": 459, "Abomasnow": 460, "Weavile": 461, "Magnezone": 462, "Lickilicky": 463, "Rhyperior": 464, "Tangrowth": 465, "Electivire": 466, "Magmortar": 467, "Togekiss": 468, "Yanmega": 469, "Leafeon": 470, "Glaceon": 471, "Gliscor": 472, "Mamoswine": 473, "Porygon-Z": 474, "Gallade": 475, "Probopass": 476, "Dusknoir": 477, "Froslass": 478, "Rotom": 479, "Uxie": 480, "Mesprit": 481, "Azelf": 482, "Dialga": 483, "Palkia": 484, "Heatran": 485, "Regigigas": 486, "Giratina": 487, "Cresselia": 488, "Phione": 489, "Manaphy": 490, "Darkrai": 491, "Shaymin": 492, "Arceus": 493, "Victini": 494, "Snivy": 495, "Servine": 496, "Serperior": 497, "Tepig": 498, "Pignite": 499, "Emboar": 500, "Oshawott": 501, "Dewott": 502, "Samurott": 503, "Patrat": 504, "Watchog": 505, "Lillipup": 506, "Herdier": 507, "Stoutland": 508, "Purrloin": 509, "Liepard": 510, "Pansage": 511, "Simisage": 512, "Pansear": 513, "Simisear": 514, "Panpour": 515, "Simipour": 516, "Munna": 517, "Musharna": 518, "Pidove": 519, "Tranquill": 520, "Unfezant": 521, "Blitzle": 522, "Zebstrika": 523, "Roggenrola": 524, "Boldore": 525, "Gigalith": 526, "Woobat": 527, "Swoobat": 528, "Drilbur": 529, "Excadrill": 530, "Audino": 531, "Timburr": 532, "Gurdurr": 533, "Conkeldurr": 534, "Tympole": 535, "Palpitoad": 536, "Seismitoad": 537, "Throh": 538, "Sawk": 539, "Sewaddle": 540, "Swadloon": 541, "Leavanny": 542, "Venipede": 543, "Whirlipede": 544, "Scolipede": 545, "Cottonee": 546, "Whimsicott": 547, "Petilil": 548, "Lilligant": 549, "Basculin": 550, "Sandile": 551, "Krokorok": 552, "Krookodile": 553, "Darumaka": 554, "Darmanitan": 555, "Maractus": 556, "Dwebble": 557, "Crustle": 558, "Scraggy": 559, "Scrafty": 560, "Sigilyph": 561, "Yamask": 562, "Cofagrigus": 563, "Tirtouga": 564, "Carracosta": 565, "Archen": 566, "Archeops": 567, "Trubbish": 568, "Garbodor": 569, "Zorua": 570, "Zoroark": 571, "Minccino": 572, "Cinccino": 573, "Gothita": 574, "Gothorita": 575, "Gothitelle": 576, "Solosis": 577, "Duosion": 578, "Reuniclus": 579, "Ducklett": 580, "Swanna": 581, "Vanillite": 582, "Vanillish": 583, "Vanilluxe": 584, "Deerling": 585, "Sawsbuck": 586, "Emolga": 587, "Karrablast": 588, "Escavalier": 589, "Foongus": 590, "Amoonguss": 591, "Frillish": 592, "Jellicent": 593, "Alomomola": 594, "Joltik": 595, "Galvantula": 596, "Ferroseed": 597, "Ferrothorn": 598, "Klink": 599, "Klang": 600, "Klinklang": 601, "Tynamo": 602, "Eelektrik": 603, "Eelektross": 604, "Elgyem": 605, "Beheeyem": 606, "Litwick": 607, "Lampent": 608, "Chandelure": 609, "Axew": 610, "Fraxure": 611, "Haxorus": 612, "Cubchoo": 613, "Beartic": 614, "Cryogonal": 615, "Shelmet": 616, "Accelgor": 617, "Stunfisk": 618, "Mienfoo": 619, "Mienshao": 620, "Druddigon": 621, "Golett": 622, "Golurk": 623, "Pawniard": 624, "Bisharp": 625, "Bouffalant": 626, "Rufflet": 627, "Braviary": 628, "Vullaby": 629, "Mandibuzz": 630, "Heatmor": 631, "Durant": 632, "Deino": 633, "Zweilous": 634, "Hydreigon": 635, "Larvesta": 636, "Volcarona": 637, "Cobalion": 638, "Terrakion": 639, "Virizion": 640, "Tornadus": 641, "Thundurus": 642, "Reshiram": 643, "Zekrom": 644, "Landorus": 645, "Kyurem": 646, "Keldeo": 647, "Meloetta": 648, "Genesect": 649, "Chespin": 650, "Quilladin": 651, "Chesnaught": 652, "Fennekin": 653, "Braixen": 654, "Delphox": 655, "Froakie": 656, "Frogadier": 657, "Greninja": 658, "Bunnelby": 659, "Diggersby": 660, "Fletchling": 661, "Fletchinder": 662, "Talonflame": 663, "Scatterbug": 664, "Spewpa": 665, "Vivillon": 666, "Litleo": 667, "Pyroar": 668, "Flab\u00e9b\u00e9": 669, "Floette": 670, "Florges": 671, "Skiddo": 672, "Gogoat": 673, "Pancham": 674, "Pangoro": 675, "Furfrou": 676, "Espurr": 677, "Meowstic": 678, "Honedge": 679, "Doublade": 680, "Aegislash": 681, "Spritzee": 682, "Aromatisse": 683, "Swirlix": 684, "Slurpuff": 685, "Inkay": 686, "Malamar": 687, "Binacle": 688, "Barbaracle": 689, "Skrelp": 690, "Dragalge": 691, "Clauncher": 692, "Clawitzer": 693, "Helioptile": 694, "Heliolisk": 695, "Tyrunt": 696, "Tyrantrum": 697, "Amaura": 698, "Aurorus": 699, "Sylveon": 700, "Hawlucha": 701, "Dedenne": 702, "Carbink": 703, "Goomy": 704, "Sliggoo": 705, "Goodra": 706, "Klefki": 707, "Phantump": 708, "Trevenant": 709, "Pumpkaboo": 710, "Gourgeist": 711, "Bergmite": 712, "Avalugg": 713, "Noibat": 714, "Noivern": 715, "Xerneas": 716, "Yveltal": 717, "Zygarde": 718, "Diancie": 719, "Hoopa": 720, "Volcanion": 721, "Rowlet": 722, "Dartrix": 723, "Decidueye": 724, "Litten": 725, "Torracat": 726, "Incineroar": 727, "Popplio": 728, "Brionne": 729, "Primarina": 730, "Pikipek": 731, "Trumbeak": 732, "Toucannon": 733, "Yungoos": 734, "Gumshoos": 735, "Grubbin": 736, "Charjabug": 737, "Vikavolt": 738, "Crabrawler": 739, "Crabominable": 740, "Oricorio": 741, "Cutiefly": 742, "Ribombee": 743, "Rockruff": 744, "Lycanroc": 745, "Wishiwashi": 746, "Mareanie": 747, "Toxapex": 748, "Mudbray": 749, "Mudsdale": 750, "Dewpider": 751, "Araquanid": 752, "Fomantis": 753, "Lurantis": 754, "Morelull": 755, "Shiinotic": 756, "Salandit": 757, "Salazzle": 758, "Stufful": 759, "Bewear": 760, "Bounsweet": 761, "Steenee": 762, "Tsareena": 763, "Comfey": 764, "Oranguru": 765, "Passimian": 766, "Wimpod": 767, "Golisopod": 768, "Sandygast": 769, "Palossand": 770, "Pyukumuku": 771, "Type: Null": 772, "Silvally": 773, "Minior": 774, "Komala": 775, "Turtonator": 776, "Togedemaru": 777, "Mimikyu": 778, "Bruxish": 779, "Drampa": 780, "Dhelmise": 781, "Jangmo-o": 782, "Hakamo-o": 783, "Kommo-o": 784, "Tapu Koko": 785, "Tapu Lele": 786, "Tapu Bulu": 787, "Tapu Fini": 788, "Cosmog": 789, "Cosmoem": 790, "Solgaleo": 791, "Lunala": 792, "Nihilego": 793, "Buzzwole": 794, "Pheromosa": 795, "Xurkitree": 796, "Celesteela": 797, "Kartana": 798, "Guzzlord": 799, "Necrozma": 800, "Magearna": 801, "Marshadow": 802, "Poipole": 803, "Naganadel": 804, "Stakataka": 805, "Blacephalon": 806, "Zeraora": 807, "Meltan": 808, "Melmetal": 809} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_8.json b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_8.json new file mode 100644 index 0000000..142ceeb --- /dev/null +++ b/server/pokepoll/static/pokepoll/pokemon_name_to_id_gen_8.json @@ -0,0 +1 @@ +{"Bulbasaur": 1, "Ivysaur": 2, "Venusaur": 3, "Charmander": 4, "Charmeleon": 5, "Charizard": 6, "Squirtle": 7, "Wartortle": 8, "Blastoise": 9, "Caterpie": 10, "Metapod": 11, "Butterfree": 12, "Weedle": 13, "Kakuna": 14, "Beedrill": 15, "Pidgey": 16, "Pidgeotto": 17, "Pidgeot": 18, "Rattata": 19, "Raticate": 20, "Spearow": 21, "Fearow": 22, "Ekans": 23, "Arbok": 24, "Pikachu": 25, "Raichu": 26, "Sandshrew": 27, "Sandslash": 28, "Nidoran\u2640": 29, "Nidorina": 30, "Nidoqueen": 31, "Nidoran\u2642": 32, "Nidorino": 33, "Nidoking": 34, "Clefairy": 35, "Clefable": 36, "Vulpix": 37, "Ninetales": 38, "Jigglypuff": 39, "Wigglytuff": 40, "Zubat": 41, "Golbat": 42, "Oddish": 43, "Gloom": 44, "Vileplume": 45, "Paras": 46, "Parasect": 47, "Venonat": 48, "Venomoth": 49, "Diglett": 50, "Dugtrio": 51, "Meowth": 52, "Persian": 53, "Psyduck": 54, "Golduck": 55, "Mankey": 56, "Primeape": 57, "Growlithe": 58, "Arcanine": 59, "Poliwag": 60, "Poliwhirl": 61, "Poliwrath": 62, "Abra": 63, "Kadabra": 64, "Alakazam": 65, "Machop": 66, "Machoke": 67, "Machamp": 68, "Bellsprout": 69, "Weepinbell": 70, "Victreebel": 71, "Tentacool": 72, "Tentacruel": 73, "Geodude": 74, "Graveler": 75, "Golem": 76, "Ponyta": 77, "Rapidash": 78, "Slowpoke": 79, "Slowbro": 80, "Magnemite": 81, "Magneton": 82, "Farfetch'd": 83, "Doduo": 84, "Dodrio": 85, "Seel": 86, "Dewgong": 87, "Grimer": 88, "Muk": 89, "Shellder": 90, "Cloyster": 91, "Gastly": 92, "Haunter": 93, "Gengar": 94, "Onix": 95, "Drowzee": 96, "Hypno": 97, "Krabby": 98, "Kingler": 99, "Voltorb": 100, "Electrode": 101, "Exeggcute": 102, "Exeggutor": 103, "Cubone": 104, "Marowak": 105, "Hitmonlee": 106, "Hitmonchan": 107, "Lickitung": 108, "Koffing": 109, "Weezing": 110, "Rhyhorn": 111, "Rhydon": 112, "Chansey": 113, "Tangela": 114, "Kangaskhan": 115, "Horsea": 116, "Seadra": 117, "Goldeen": 118, "Seaking": 119, "Staryu": 120, "Starmie": 121, "Mr. Mime": 122, "Scyther": 123, "Jynx": 124, "Electabuzz": 125, "Magmar": 126, "Pinsir": 127, "Tauros": 128, "Magikarp": 129, "Gyarados": 130, "Lapras": 131, "Ditto": 132, "Eevee": 133, "Vaporeon": 134, "Jolteon": 135, "Flareon": 136, "Porygon": 137, "Omanyte": 138, "Omastar": 139, "Kabuto": 140, "Kabutops": 141, "Aerodactyl": 142, "Snorlax": 143, "Articuno": 144, "Zapdos": 145, "Moltres": 146, "Dratini": 147, "Dragonair": 148, "Dragonite": 149, "Mewtwo": 150, "Mew": 151, "Chikorita": 152, "Bayleef": 153, "Meganium": 154, "Cyndaquil": 155, "Quilava": 156, "Typhlosion": 157, "Totodile": 158, "Croconaw": 159, "Feraligatr": 160, "Sentret": 161, "Furret": 162, "Hoothoot": 163, "Noctowl": 164, "Ledyba": 165, "Ledian": 166, "Spinarak": 167, "Ariados": 168, "Crobat": 169, "Chinchou": 170, "Lanturn": 171, "Pichu": 172, "Cleffa": 173, "Igglybuff": 174, "Togepi": 175, "Togetic": 176, "Natu": 177, "Xatu": 178, "Mareep": 179, "Flaaffy": 180, "Ampharos": 181, "Bellossom": 182, "Marill": 183, "Azumarill": 184, "Sudowoodo": 185, "Politoed": 186, "Hoppip": 187, "Skiploom": 188, "Jumpluff": 189, "Aipom": 190, "Sunkern": 191, "Sunflora": 192, "Yanma": 193, "Wooper": 194, "Quagsire": 195, "Espeon": 196, "Umbreon": 197, "Murkrow": 198, "Slowking": 199, "Misdreavus": 200, "Unown": 201, "Wobbuffet": 202, "Girafarig": 203, "Pineco": 204, "Forretress": 205, "Dunsparce": 206, "Gligar": 207, "Steelix": 208, "Snubbull": 209, "Granbull": 210, "Qwilfish": 211, "Scizor": 212, "Shuckle": 213, "Heracross": 214, "Sneasel": 215, "Teddiursa": 216, "Ursaring": 217, "Slugma": 218, "Magcargo": 219, "Swinub": 220, "Piloswine": 221, "Corsola": 222, "Remoraid": 223, "Octillery": 224, "Delibird": 225, "Mantine": 226, "Skarmory": 227, "Houndour": 228, "Houndoom": 229, "Kingdra": 230, "Phanpy": 231, "Donphan": 232, "Porygon2": 233, "Stantler": 234, "Smeargle": 235, "Tyrogue": 236, "Hitmontop": 237, "Smoochum": 238, "Elekid": 239, "Magby": 240, "Miltank": 241, "Blissey": 242, "Raikou": 243, "Entei": 244, "Suicune": 245, "Larvitar": 246, "Pupitar": 247, "Tyranitar": 248, "Lugia": 249, "Ho-Oh": 250, "Celebi": 251, "Treecko": 252, "Grovyle": 253, "Sceptile": 254, "Torchic": 255, "Combusken": 256, "Blaziken": 257, "Mudkip": 258, "Marshtomp": 259, "Swampert": 260, "Poochyena": 261, "Mightyena": 262, "Zigzagoon": 263, "Linoone": 264, "Wurmple": 265, "Silcoon": 266, "Beautifly": 267, "Cascoon": 268, "Dustox": 269, "Lotad": 270, "Lombre": 271, "Ludicolo": 272, "Seedot": 273, "Nuzleaf": 274, "Shiftry": 275, "Taillow": 276, "Swellow": 277, "Wingull": 278, "Pelipper": 279, "Ralts": 280, "Kirlia": 281, "Gardevoir": 282, "Surskit": 283, "Masquerain": 284, "Shroomish": 285, "Breloom": 286, "Slakoth": 287, "Vigoroth": 288, "Slaking": 289, "Nincada": 290, "Ninjask": 291, "Shedinja": 292, "Whismur": 293, "Loudred": 294, "Exploud": 295, "Makuhita": 296, "Hariyama": 297, "Azurill": 298, "Nosepass": 299, "Skitty": 300, "Delcatty": 301, "Sableye": 302, "Mawile": 303, "Aron": 304, "Lairon": 305, "Aggron": 306, "Meditite": 307, "Medicham": 308, "Electrike": 309, "Manectric": 310, "Plusle": 311, "Minun": 312, "Volbeat": 313, "Illumise": 314, "Roselia": 315, "Gulpin": 316, "Swalot": 317, "Carvanha": 318, "Sharpedo": 319, "Wailmer": 320, "Wailord": 321, "Numel": 322, "Camerupt": 323, "Torkoal": 324, "Spoink": 325, "Grumpig": 326, "Spinda": 327, "Trapinch": 328, "Vibrava": 329, "Flygon": 330, "Cacnea": 331, "Cacturne": 332, "Swablu": 333, "Altaria": 334, "Zangoose": 335, "Seviper": 336, "Lunatone": 337, "Solrock": 338, "Barboach": 339, "Whiscash": 340, "Corphish": 341, "Crawdaunt": 342, "Baltoy": 343, "Claydol": 344, "Lileep": 345, "Cradily": 346, "Anorith": 347, "Armaldo": 348, "Feebas": 349, "Milotic": 350, "Castform": 351, "Kecleon": 352, "Shuppet": 353, "Banette": 354, "Duskull": 355, "Dusclops": 356, "Tropius": 357, "Chimecho": 358, "Absol": 359, "Wynaut": 360, "Snorunt": 361, "Glalie": 362, "Spheal": 363, "Sealeo": 364, "Walrein": 365, "Clamperl": 366, "Huntail": 367, "Gorebyss": 368, "Relicanth": 369, "Luvdisc": 370, "Bagon": 371, "Shelgon": 372, "Salamence": 373, "Beldum": 374, "Metang": 375, "Metagross": 376, "Regirock": 377, "Regice": 378, "Registeel": 379, "Latias": 380, "Latios": 381, "Kyogre": 382, "Groudon": 383, "Rayquaza": 384, "Jirachi": 385, "Deoxys": 386, "Turtwig": 387, "Grotle": 388, "Torterra": 389, "Chimchar": 390, "Monferno": 391, "Infernape": 392, "Piplup": 393, "Prinplup": 394, "Empoleon": 395, "Starly": 396, "Staravia": 397, "Staraptor": 398, "Bidoof": 399, "Bibarel": 400, "Kricketot": 401, "Kricketune": 402, "Shinx": 403, "Luxio": 404, "Luxray": 405, "Budew": 406, "Roserade": 407, "Cranidos": 408, "Rampardos": 409, "Shieldon": 410, "Bastiodon": 411, "Burmy": 412, "Wormadam": 413, "Mothim": 414, "Combee": 415, "Vespiquen": 416, "Pachirisu": 417, "Buizel": 418, "Floatzel": 419, "Cherubi": 420, "Cherrim": 421, "Shellos": 422, "Gastrodon": 423, "Ambipom": 424, "Drifloon": 425, "Drifblim": 426, "Buneary": 427, "Lopunny": 428, "Mismagius": 429, "Honchkrow": 430, "Glameow": 431, "Purugly": 432, "Chingling": 433, "Stunky": 434, "Skuntank": 435, "Bronzor": 436, "Bronzong": 437, "Bonsly": 438, "Mime Jr.": 439, "Happiny": 440, "Chatot": 441, "Spiritomb": 442, "Gible": 443, "Gabite": 444, "Garchomp": 445, "Munchlax": 446, "Riolu": 447, "Lucario": 448, "Hippopotas": 449, "Hippowdon": 450, "Skorupi": 451, "Drapion": 452, "Croagunk": 453, "Toxicroak": 454, "Carnivine": 455, "Finneon": 456, "Lumineon": 457, "Mantyke": 458, "Snover": 459, "Abomasnow": 460, "Weavile": 461, "Magnezone": 462, "Lickilicky": 463, "Rhyperior": 464, "Tangrowth": 465, "Electivire": 466, "Magmortar": 467, "Togekiss": 468, "Yanmega": 469, "Leafeon": 470, "Glaceon": 471, "Gliscor": 472, "Mamoswine": 473, "Porygon-Z": 474, "Gallade": 475, "Probopass": 476, "Dusknoir": 477, "Froslass": 478, "Rotom": 479, "Uxie": 480, "Mesprit": 481, "Azelf": 482, "Dialga": 483, "Palkia": 484, "Heatran": 485, "Regigigas": 486, "Giratina": 487, "Cresselia": 488, "Phione": 489, "Manaphy": 490, "Darkrai": 491, "Shaymin": 492, "Arceus": 493, "Victini": 494, "Snivy": 495, "Servine": 496, "Serperior": 497, "Tepig": 498, "Pignite": 499, "Emboar": 500, "Oshawott": 501, "Dewott": 502, "Samurott": 503, "Patrat": 504, "Watchog": 505, "Lillipup": 506, "Herdier": 507, "Stoutland": 508, "Purrloin": 509, "Liepard": 510, "Pansage": 511, "Simisage": 512, "Pansear": 513, "Simisear": 514, "Panpour": 515, "Simipour": 516, "Munna": 517, "Musharna": 518, "Pidove": 519, "Tranquill": 520, "Unfezant": 521, "Blitzle": 522, "Zebstrika": 523, "Roggenrola": 524, "Boldore": 525, "Gigalith": 526, "Woobat": 527, "Swoobat": 528, "Drilbur": 529, "Excadrill": 530, "Audino": 531, "Timburr": 532, "Gurdurr": 533, "Conkeldurr": 534, "Tympole": 535, "Palpitoad": 536, "Seismitoad": 537, "Throh": 538, "Sawk": 539, "Sewaddle": 540, "Swadloon": 541, "Leavanny": 542, "Venipede": 543, "Whirlipede": 544, "Scolipede": 545, "Cottonee": 546, "Whimsicott": 547, "Petilil": 548, "Lilligant": 549, "Basculin": 550, "Sandile": 551, "Krokorok": 552, "Krookodile": 553, "Darumaka": 554, "Darmanitan": 555, "Maractus": 556, "Dwebble": 557, "Crustle": 558, "Scraggy": 559, "Scrafty": 560, "Sigilyph": 561, "Yamask": 562, "Cofagrigus": 563, "Tirtouga": 564, "Carracosta": 565, "Archen": 566, "Archeops": 567, "Trubbish": 568, "Garbodor": 569, "Zorua": 570, "Zoroark": 571, "Minccino": 572, "Cinccino": 573, "Gothita": 574, "Gothorita": 575, "Gothitelle": 576, "Solosis": 577, "Duosion": 578, "Reuniclus": 579, "Ducklett": 580, "Swanna": 581, "Vanillite": 582, "Vanillish": 583, "Vanilluxe": 584, "Deerling": 585, "Sawsbuck": 586, "Emolga": 587, "Karrablast": 588, "Escavalier": 589, "Foongus": 590, "Amoonguss": 591, "Frillish": 592, "Jellicent": 593, "Alomomola": 594, "Joltik": 595, "Galvantula": 596, "Ferroseed": 597, "Ferrothorn": 598, "Klink": 599, "Klang": 600, "Klinklang": 601, "Tynamo": 602, "Eelektrik": 603, "Eelektross": 604, "Elgyem": 605, "Beheeyem": 606, "Litwick": 607, "Lampent": 608, "Chandelure": 609, "Axew": 610, "Fraxure": 611, "Haxorus": 612, "Cubchoo": 613, "Beartic": 614, "Cryogonal": 615, "Shelmet": 616, "Accelgor": 617, "Stunfisk": 618, "Mienfoo": 619, "Mienshao": 620, "Druddigon": 621, "Golett": 622, "Golurk": 623, "Pawniard": 624, "Bisharp": 625, "Bouffalant": 626, "Rufflet": 627, "Braviary": 628, "Vullaby": 629, "Mandibuzz": 630, "Heatmor": 631, "Durant": 632, "Deino": 633, "Zweilous": 634, "Hydreigon": 635, "Larvesta": 636, "Volcarona": 637, "Cobalion": 638, "Terrakion": 639, "Virizion": 640, "Tornadus": 641, "Thundurus": 642, "Reshiram": 643, "Zekrom": 644, "Landorus": 645, "Kyurem": 646, "Keldeo": 647, "Meloetta": 648, "Genesect": 649, "Chespin": 650, "Quilladin": 651, "Chesnaught": 652, "Fennekin": 653, "Braixen": 654, "Delphox": 655, "Froakie": 656, "Frogadier": 657, "Greninja": 658, "Bunnelby": 659, "Diggersby": 660, "Fletchling": 661, "Fletchinder": 662, "Talonflame": 663, "Scatterbug": 664, "Spewpa": 665, "Vivillon": 666, "Litleo": 667, "Pyroar": 668, "Flab\u00e9b\u00e9": 669, "Floette": 670, "Florges": 671, "Skiddo": 672, "Gogoat": 673, "Pancham": 674, "Pangoro": 675, "Furfrou": 676, "Espurr": 677, "Meowstic": 678, "Honedge": 679, "Doublade": 680, "Aegislash": 681, "Spritzee": 682, "Aromatisse": 683, "Swirlix": 684, "Slurpuff": 685, "Inkay": 686, "Malamar": 687, "Binacle": 688, "Barbaracle": 689, "Skrelp": 690, "Dragalge": 691, "Clauncher": 692, "Clawitzer": 693, "Helioptile": 694, "Heliolisk": 695, "Tyrunt": 696, "Tyrantrum": 697, "Amaura": 698, "Aurorus": 699, "Sylveon": 700, "Hawlucha": 701, "Dedenne": 702, "Carbink": 703, "Goomy": 704, "Sliggoo": 705, "Goodra": 706, "Klefki": 707, "Phantump": 708, "Trevenant": 709, "Pumpkaboo": 710, "Gourgeist": 711, "Bergmite": 712, "Avalugg": 713, "Noibat": 714, "Noivern": 715, "Xerneas": 716, "Yveltal": 717, "Zygarde": 718, "Diancie": 719, "Hoopa": 720, "Volcanion": 721, "Rowlet": 722, "Dartrix": 723, "Decidueye": 724, "Litten": 725, "Torracat": 726, "Incineroar": 727, "Popplio": 728, "Brionne": 729, "Primarina": 730, "Pikipek": 731, "Trumbeak": 732, "Toucannon": 733, "Yungoos": 734, "Gumshoos": 735, "Grubbin": 736, "Charjabug": 737, "Vikavolt": 738, "Crabrawler": 739, "Crabominable": 740, "Oricorio": 741, "Cutiefly": 742, "Ribombee": 743, "Rockruff": 744, "Lycanroc": 745, "Wishiwashi": 746, "Mareanie": 747, "Toxapex": 748, "Mudbray": 749, "Mudsdale": 750, "Dewpider": 751, "Araquanid": 752, "Fomantis": 753, "Lurantis": 754, "Morelull": 755, "Shiinotic": 756, "Salandit": 757, "Salazzle": 758, "Stufful": 759, "Bewear": 760, "Bounsweet": 761, "Steenee": 762, "Tsareena": 763, "Comfey": 764, "Oranguru": 765, "Passimian": 766, "Wimpod": 767, "Golisopod": 768, "Sandygast": 769, "Palossand": 770, "Pyukumuku": 771, "Type: Null": 772, "Silvally": 773, "Minior": 774, "Komala": 775, "Turtonator": 776, "Togedemaru": 777, "Mimikyu": 778, "Bruxish": 779, "Drampa": 780, "Dhelmise": 781, "Jangmo-o": 782, "Hakamo-o": 783, "Kommo-o": 784, "Tapu Koko": 785, "Tapu Lele": 786, "Tapu Bulu": 787, "Tapu Fini": 788, "Cosmog": 789, "Cosmoem": 790, "Solgaleo": 791, "Lunala": 792, "Nihilego": 793, "Buzzwole": 794, "Pheromosa": 795, "Xurkitree": 796, "Celesteela": 797, "Kartana": 798, "Guzzlord": 799, "Necrozma": 800, "Magearna": 801, "Marshadow": 802, "Poipole": 803, "Naganadel": 804, "Stakataka": 805, "Blacephalon": 806, "Zeraora": 807, "Meltan": 808, "Melmetal": 809} \ No newline at end of file diff --git a/server/pokepoll/static/pokepoll/submit_style.css b/server/pokepoll/static/pokepoll/submit_style.css new file mode 100644 index 0000000..e69de29 diff --git a/server/pokepoll/support/cachedconstants.py b/server/pokepoll/support/cachedconstants.py index 3a1974c..40489bd 100644 --- a/server/pokepoll/support/cachedconstants.py +++ b/server/pokepoll/support/cachedconstants.py @@ -223,7 +223,6 @@ def main(): all_pokemon_names = get_all_pokemon_names(pokedex) # file 2: pokemon_name_to_id.json - pokemon_name_to_id = get_pokemon_name_to_id(pokedex) # file 3: ability lookup of ability_id to ability_name ability_lookup = decode_c_sharp_enum(ABILITY_ENUM_PATH) @@ -232,8 +231,16 @@ def main(): move_lookup = decode_c_sharp_enum(MOVE_ENUM_PATH) - with open(FILE_1_EXPORT_PATH, 'w') as f: - json.dump(pokemon_name_to_id, f) + + for terminating_index in MAX_POKEDEX_DICT: + pokedex_slice = pokedex[:MAX_POKEDEX_DICT[terminating_index]] + pokemon_name_to_id = get_pokemon_name_to_id(pokedex_slice) + + with open('../static/pokepoll/pokemon_name_to_id_gen_{}.json'.format(terminating_index), 'w') as f: + json.dump(pokemon_name_to_id, f) + + # with open(FILE_1_EXPORT_PATH, 'w') as f: + # json.dump(pokemon_name_to_id, f) with open(FILE_2_EXPORT_PATH, 'w') as f: json.dump(all_pokemon_names, f) diff --git a/server/pokepoll/templates/pokepoll/master_submit.html b/server/pokepoll/templates/pokepoll/master_submit.html index dcf4f0d..01e7214 100644 --- a/server/pokepoll/templates/pokepoll/master_submit.html +++ b/server/pokepoll/templates/pokepoll/master_submit.html @@ -1,15 +1,22 @@ {% load static %} -

Hewwo

+ + + + + Submit a Pokemon + + + + + + + - - -
{% csrf_token %} - -
- -
-
- -

Intended Pokemon Generation

+ #pokemon_preview { + width: 30%; + } + - {{ pokemon_form.pokemon_intended_generation }} -

Other Generations this Pokemon can be used in

+
+
-

- + + + + +
+
-

Nickname (Limit {{nickname_character_limit}} characters)

+
+ + Reset Catch + +
Home
+
+
-
- -
-
+
+
+ + Reset Catch + +
Reset Form
+
+
-

Ability

+
-
- -
- - Shiny +
-
+
+

Submit a Pokemon

+
-

Held Item

-
- -
-
+
-

Stats:

+
-

Nature:

+
- +
-
+
+
+ + + Share Pokedex + +
Share progress to Twitter
+
+
-

IVs/EVs

+
-

Total EVs: 0

+
- -
- -
- -
- -
- -
- +
-
- - - - - - -
+
+
{% csrf_token %} + +
+ +
+ + +
+ +
+ +
+ + Shiny + +
+ +

Intended Pokemon Generation

+ + + {{ pokemon_form.pokemon_intended_generation }} + +

Other Generations this Pokemon can be used in

+ +

+ + {% comment %} {% endcomment %} + + + +

Nickname (Limit {{nickname_character_limit}} characters)

+ +
+ +
+
+ +

Ability

+ +
+ +
+ +
+ +

Held Item

+
+ +
+ + +
+ +
+ + +
+ +
+ + + Pokemon Preview + +

IVs/EVs

+ +

Total EVs: 0

+ + HP +
+ Attack +
+ Defense +
+ Special Attack +
+ Special Defense +
+ Speed + +
+
+ +

Nature:

+ + - -
- - -
- - - -
+
+ +
+

Moveset

+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ +
+
+
+ +
+ + +
+ + + +
+ + +
+ + -
- - +
+
+ -

Moveset

- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- -
- -
-
-
- - @@ -368,15 +475,62 @@
Existing user not found, enter your name below and we will create a record a let current_generation = 4; let NATURES; let NATURES_GEN_3; -max_pokedex_entry = {{ max_pokedex_entry }}; +let COMPLETE_POKEDEX = []; + + +//static paths +let STATIC_POKEMON_NAMES_JSON_PATHS = [ + "{% static 'pokepoll/pokemon_name_to_id_gen_1.json' %}", + "{% static 'pokepoll/pokemon_name_to_id_gen_2.json' %}", + "{% static 'pokepoll/pokemon_name_to_id_gen_3.json' %}", + "{% static 'pokepoll/pokemon_name_to_id_gen_4.json' %}", + "{% static 'pokepoll/pokemon_name_to_id_gen_5.json' %}", + "{% static 'pokepoll/pokemon_name_to_id_gen_6.json' %}", + "{% static 'pokepoll/pokemon_name_to_id_gen_7.json' %}", + "{% static 'pokepoll/pokemon_name_to_id_gen_8.json' %}", +] + +let STATIC_ABILITY_JSON_PATHS = [ + "{% static 'pokepoll/pokemon_ability_to_id_gen_1.json' %}", + "{% static 'pokepoll/pokemon_ability_to_id_gen_2.json' %}", + "{% static 'pokepoll/pokemon_ability_to_id_gen_3.json' %}", + "{% static 'pokepoll/pokemon_ability_to_id_gen_4.json' %}", + "{% static 'pokepoll/pokemon_ability_to_id_gen_5.json' %}", + "{% static 'pokepoll/pokemon_ability_to_id_gen_6.json' %}", + "{% static 'pokepoll/pokemon_ability_to_id_gen_7.json' %}", + "{% static 'pokepoll/pokemon_ability_to_id_gen_8.json' %}", +] + +let STATIC_HELD_ITEM_JSON_PATHS = [ + "{% static 'pokepoll/held_items_to_id_gen_1.json' %}", + "{% static 'pokepoll/held_items_to_id_gen_2.json' %}", + "{% static 'pokepoll/held_items_to_id_gen_3.json' %}", + "{% static 'pokepoll/held_items_to_id_gen_4.json' %}", + "{% static 'pokepoll/held_items_to_id_gen_5.json' %}", + "{% static 'pokepoll/held_items_to_id_gen_6.json' %}", + "{% static 'pokepoll/held_items_to_id_gen_7.json' %}", + "{% static 'pokepoll/held_items_to_id_gen_8.json' %}", +] + +let STATIC_MOVES_JSON_PATHS = [ + "{% static 'pokepoll/pokemon_move_to_id_gen_1.json' %}", + "{% static 'pokepoll/pokemon_move_to_id_gen_2.json' %}", + "{% static 'pokepoll/pokemon_move_to_id_gen_3.json' %}", + "{% static 'pokepoll/pokemon_move_to_id_gen_4.json' %}", + "{% static 'pokepoll/pokemon_move_to_id_gen_5.json' %}", + "{% static 'pokepoll/pokemon_move_to_id_gen_6.json' %}", + "{% static 'pokepoll/pokemon_move_to_id_gen_7.json' %}", + "{% static 'pokepoll/pokemon_move_to_id_gen_8.json' %}", +] + // Other Functions // Function to fetch and use the JSON data -async function fetchPokemonNames(max_index) { +async function fetchPokemonNames(generation) { try { // Fetch the JSON data from the server - const response = await fetch('{% static 'pokepoll/all_pokemon_names.json' %}'); + const response = await fetch(STATIC_POKEMON_NAMES_JSON_PATHS[generation - 1]); // Check if the fetch was successful if (!response.ok) { throw new Error('Network response was not ok ' + response.statusText); @@ -384,34 +538,18 @@
Existing user not found, enter your name below and we will create a record a // Parse the JSON data const pokemonNames = await response.json(); // Now you can use the `pokemonNames` variable which contains the parsed JSON data + console.log(pokemonNames); - return pokemonNames.slice(0, max_index); - } catch (error) { - console.error('There was a problem with the fetch operation:', error); - return [] - } -} -async function fetchPokemonMoves(max_index){ - try { - // Fetch the JSON data from the server - const response = await fetch('{% static 'pokepoll/all_moves.json' %}'); - // Check if the fetch was successful - if (!response.ok) { - throw new Error('Network response was not ok ' + response.statusText); - } - // Parse the JSON data - const pokemonMoves = await response.json(); - // Now you can use the `pokemonNames` variable which contains the parsed JSON data - console.log(pokemonMoves); - return pokemonMoves.slice(0, max_index); + return pokemonNames + } catch (error) { console.error('There was a problem with the fetch operation:', error); return [] } } -async function getchPokemonNature(){ +async function fetchPokemonNature(){ try { // Fetch the JSON data from the server const response = await fetch('{% static 'pokepoll/nature_enum.json' %}'); @@ -430,7 +568,7 @@
Existing user not found, enter your name below and we will create a record a } } -async function getchPokemonNatureGen3(){ +async function fetchPokemonNatureGen3(){ try { // Fetch the JSON data from the server const response = await fetch('{% static 'pokepoll/gen3_nature_enum.json' %}'); @@ -449,14 +587,10 @@
Existing user not found, enter your name below and we will create a record a } } -async function fetchHeldItems(max_index){ +async function fetchHeldItems(pokemon_generation){ try { - // Fetch the JSON data - {% with "pokepoll/held_items_to_id_gen_"|add:pokemon_generation|stringformat:"s"|add:".json" as filename %} - const response = await fetch("{% static filename %}"); - {% endwith %} - - + // Fetch the JSON data + const response = await fetch(STATIC_HELD_ITEM_JSON_PATHS[pokemon_generation - 1]); // Check if the fetch was successful if (!response.ok) { @@ -474,12 +608,10 @@
Existing user not found, enter your name below and we will create a record a } -async function fetchPokemonMoves(max_index){ +async function fetchPokemonMoves(pokemon_generation){ try { // Fetch the JSON data - {% with "pokepoll/pokemon_move_to_id_gen_"|add:pokemon_generation|stringformat:"s"|add:".json" as filename %} - const response = await fetch("{% static filename %}"); - {% endwith %} + const response = await fetch(STATIC_MOVES_JSON_PATHS[pokemon_generation - 1]); @@ -526,8 +658,9 @@
Existing user not found, enter your name below and we will create a record a // Register autocomplete listeners onto elements -fetchPokemonNames(max_pokedex_entry).then(all_pokemon => { +fetchPokemonNames(current_generation).then(all_pokemon => { autocomplete(document.getElementById("myInput"), all_pokemon); + COMPLETE_POKEDEX = all_pokemon; }) /* fetchPokemonMoves(max_pokedex_entry).then(all_moves => { @@ -537,16 +670,16 @@
Existing user not found, enter your name below and we will create a record a autocomplete(document.getElementById("move4"), all_moves); }) */ -fetchPokemonAbilities(max_pokedex_entry).then(all_abilities => { +fetchPokemonAbilities(current_generation).then(all_abilities => { autocomplete(document.getElementById("ability"), all_abilities); }) -fetchHeldItems(max_pokedex_entry).then(all_items => { +fetchHeldItems(current_generation).then(all_items => { autocomplete(document.getElementById("held_item"), all_items); }) // Register autocomplete onto all 4 moves -fetchPokemonMoves(max_pokedex_entry).then(all_moves => { +fetchPokemonMoves(current_generation).then(all_moves => { for (let i = 1; i <= 4; i++) { autocomplete(document.getElementById("pokemon_move" + i), all_moves); } @@ -579,6 +712,8 @@
Existing user not found, enter your name below and we will create a record a document.getElementById("total-evs").innerText = totalEvs; + colorIVs(stats); + }); }); @@ -635,20 +770,20 @@
Existing user not found, enter your name below and we will create a record a // Fetch - NATURES_GEN_3 = await getchPokemonNatureGen3() - NATURES = await getchPokemonNature(); + NATURES_GEN_3 = await fetchPokemonNatureGen3() + NATURES = await fetchPokemonNature(); console.log(NATURES_GEN_3); console.log(NATURES); // Fill ins - fill_in_generations("{{ pokemon_form.pokemon_compatible_generations.id_for_label }}", document.getElementById("{{ pokemon_form.pokemon_intended_generation.id_for_label }}").value); + //fill_in_generations("{{ pokemon_form.pokemon_compatible_generations.id_for_label }}", document.getElementById("{{ pokemon_form.pokemon_intended_generation.id_for_label }}").value); fill_in_natures("{{ pokemon_form.pokemon_nature.id_for_label }}", current_generation); // populate the tooltip - document.getElementById("multiselect-tooltip").innerText = `Hold down the ${getMultiSelectToolForOS()} key to select multiple generations` + // document.getElementById("multiselect-tooltip").innerText = `Hold down the ${getMultiSelectToolForOS()} key to select multiple generations` @@ -660,19 +795,138 @@
Existing user not found, enter your name below and we will create a record a console.log(selected); current_generation = selected; refreshUI(); + refreshPokemonPreview(); + + }); + document.getElementById("myInput").addEventListener("input", function() { + refreshPokemonPreview(); }); } -async function refreshUI() { +async function refreshUI(generation_changed=false) { console.log("Calling UI Refresh") console.log(`Status of Global Variables: \n NATURES: ${NATURES} \n NATURES_GEN_3: ${NATURES_GEN_3} \n Current Generation: ${current_generation} \n POKEMON_GENERATION: ${POKEMON_GENERATION} \n max_pokedex_entry: ${max_pokedex_entry}`) - fill_in_generations("{{ pokemon_form.pokemon_compatible_generations.id_for_label }}", current_generation); + //fill_in_generations("{{ pokemon_form.pokemon_compatible_generations.id_for_label }}", current_generation); fill_in_natures("{{ pokemon_form.pokemon_nature.id_for_label }}", current_generation); + + // update ability and held item autocomplete if the generation changed + if (generation_changed) { + fetchPokemonAbilities(max_pokedex_entry).then(all_abilities => { + autocomplete(document.getElementById("ability"), all_abilities); + }) + + fetchHeldItems(max_pokedex_entry).then(all_items => { + autocomplete(document.getElementById("held_item"), all_items); + }) + } + +} + +function calculateColorCodeFromBaseStat(base_stat) { + // calculates a hex rgba color code based on the base stat + + starting_color = 0xDC0000; + + BASE_STAT_MAX = 190; + + // calculate the percentage of the base stat + percentage = base_stat / BASE_STAT_MAX; + + + + // if greater than 50% max out green and base rest on reducing red + if (percentage > 0.5) { + green = 0xFF; + red = 0xFF - (percentage - 0.5) * 2 * 0xFF; + } + + // if less than 50% max out red and base rest on increasing green + else { + red = 0xFF; + green = percentage * 2 * 0xFF; + } + + // convert to hex + + red_hex = Math.floor(red).toString(16); + green_hex = Math.floor(green).toString(16); + blue_hex = "00"; + + return `#${red_hex}${green_hex}${blue_hex}`; + + + + + +} + +async function colorIVs(stats) { + let evs_array = [document.getElementById("EV1"), document.getElementById("EV2"), document.getElementById("EV3"), document.getElementById("EV4"), document.getElementById("EV5"), document.getElementById("EV6")]; + let ivs_array = [document.getElementById("IV1"), document.getElementById("IV2"), document.getElementById("IV3"), document.getElementById("IV4"), document.getElementById("IV5"), document.getElementById("IV6")]; + + console.log(ivs_array) + console.log(evs_array) + console.log(stats) + + for (let i = 0; i < ivs_array.length; i++) { + let iv = ivs_array[i]; + let ev = evs_array[i]; + let stat = stats[i]; + + let base_stat = stat.base_stat; + let ev_val = parseInt(ev.value); + let iv_val = parseInt(iv.value); + + let calculated_base_stat = Math.floor(base_stat + iv_val / 2 + ev_val/12); + + console.log(base_stat, ev_val, iv_val, ": ", calculated_base_stat); + + bar_color = calculateColorCodeFromBaseStat(calculated_base_stat); + console.log(bar_color); + + // set accent color to hex rgba based on base stat + ev.style.accentColor = bar_color; + console.log(iv); + + + } +} + +async function refreshPokemonPreview() { + let speciesName = document.getElementById("myInput").value; + + // if species is not in the pokedex, return + if (!COMPLETE_POKEDEX.includes(speciesName)) { + console.log(speciesName + " not in pokedex") + return; + } + + speciesName = speciesName.toLowerCase(); + // strip whitespace + speciesName = speciesName.replace(/\s/g, ""); + + console.log(speciesName) + // Fetch the species ID + let statsAndId = await pokemonIDandStatsMultiGet(speciesName); + console.log(statsAndId); + + pokemonID = statsAndId.id; + console.log(pokemonID); + let spriteURL = await getPokemonSpriteURL(pokemonID, false, true); + + // use base stats to set starting base stat hints + stats = statsAndId.stats; + colorIVs(stats); + + document.getElementById("pokemon_preview").src = spriteURL; + + // Color + } init(); diff --git a/server/pokepoll/views.py b/server/pokepoll/views.py index e545276..87562b9 100644 --- a/server/pokepoll/views.py +++ b/server/pokepoll/views.py @@ -201,7 +201,7 @@ def saveGenView(request): "movespp": [0] * len(egg.pokemon_moves), "heldItem": egg.pokemon_held_item, "isShiny": egg.pokemon_is_shiny, - "generation": 4, + "generation": egg.pokemon_intended_generation, })