This commit is contained in:
Dragon Fire
2024-05-03 10:28:55 -04:00
parent e92f705824
commit 6dbd29cb03
158 changed files with 158 additions and 159 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ module.exports = class Pokemon {
const y = Math.floor(this.id / 12) * 30;
ctx.drawImage(this.store.sprites, x, y, 40, 30, 0, 0, 40, 30);
cropToContent(ctx, canvas, canvas.width, canvas.height);
return canvas.toBuffer();
return canvas.toBuffer('image/png');
}
async fetchSmogonTiers(...gens) {