From b61431a675bc02526bfea3cefb72bdbfe30d6224 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Fri, 29 Mar 2024 17:03:13 -0400 Subject: [PATCH] Fix --- commands/pokedex/pokedex-box-sprite.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/pokedex/pokedex-box-sprite.js b/commands/pokedex/pokedex-box-sprite.js index 1a375f49..5e69b43c 100644 --- a/commands/pokedex/pokedex-box-sprite.js +++ b/commands/pokedex/pokedex-box-sprite.js @@ -72,7 +72,7 @@ module.exports = class PokedexBoxSpriteCommand extends Command { const x = 40 * (this.id % 12); const y = Math.floor(this.id / 12) * 30; ctx.imageSmoothingEnabled = false; - const ratio = 250 / 30; + const ratio = 250 / 40; const height = 30 * ratio; ctx.drawImage(this.client.pokemon.sprites, x, y, 40, 30, 0, 0, 250, height); cropToContent(ctx, canvas, canvas.width, canvas.height);