This commit is contained in:
Dragon Fire
2024-03-29 17:03:13 -04:00
parent 8d63c7f52b
commit b61431a675
+1 -1
View File
@@ -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);