This commit is contained in:
Dragon Fire
2021-01-20 18:28:09 -05:00
parent 2be66ffb63
commit 42b9dfc949
2 changed files with 14 additions and 3 deletions
+12 -1
View File
@@ -3,6 +3,17 @@ const { MessageEmbed } = require('discord.js');
const { stripIndents } = require('common-tags');
const { arrayEquals, firstUpperCase, reactIfAble } = require('../../util/Util');
const { MEGA_EVOLVE_EMOJI_NAME, MEGA_EVOLVE_EMOJI_ID } = process.env;
const genGames = [null, 'rb', 'gs', 'rs', 'dp', 'bw', 'xy', 'sm', 'ss'];
const games = {
rb: 'Red/Blue',
gs: 'Gold/Silver',
rs: 'Ruby/Sapphire',
dp: 'Diamond/Pearl',
bw: 'Black/White',
xy: 'X/Y',
sm: 'Sun/Moon',
ss: 'Sword/Shield'
};
module.exports = class PokedexCommand extends Command {
constructor(client) {
@@ -89,7 +100,7 @@ module.exports = class PokedexCommand extends Command {
${data.entries[Math.floor(Math.random() * data.entries.length)]}
`)
.setThumbnail(data.spriteImageURL)
.addField(' Class', firstUpperCase(data.class), true)
.addField(' Introduced In', games[genGames[data.generation]], true)
.addField(' Height', `${feet}'${Math.floor(data.height) - (feet * 12)}"`, true)
.addField(' Weight', `${data.weight} lbs.`, true)
.addField(' Types', typesShown.map(variety => {
+2 -2
View File
@@ -86,8 +86,8 @@ module.exports = class Pokemon {
if (this.id >= 387) return 4;
if (this.id >= 252) return 3;
if (this.id >= 152) return 2;
if (this.id >= 1) return 1;
return 0;
if (this.id >= 0) return 1;
return null;
}
get class() {