Skip to content

Commit

Permalink
v1.3.4 - Fix of small oversight
Browse files Browse the repository at this point in the history
  • Loading branch information
kyan0045 authored Feb 19, 2024
1 parent e7cd722 commit bc85e67
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions functions/checkRarity.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
async function checkRarity(pokemonName) {
const pokemon = require("../data/pokemon.json");
const legendaries = require("../data/legendary.json");
const mythicals = require("../data/mythical.json");
const ultra_beasts = require("../data/ultra-beast.json");
const regionals = require("../data/regional.json");
const events = require("../data/event.json");
const pokemon = require("../data/main/pokemon.json");
const legendaries = require("../data/main/legendary.json");
const mythicals = require("../data/main/mythical.json");
const ultra_beasts = require("../data/main/ultra-beast.json");
const regionals = require("../data/main/regional.json");
const events = require("../data/main/event.json");

if (!pokemon.includes(pokemonName)) throw new Error(`[PokeHint] Unable to identify the rarity of that pokemon (${pokemonName}).`);

Expand Down

0 comments on commit bc85e67

Please sign in to comment.