This commit is contained in:
Dragon Fire
2021-01-29 18:07:07 -05:00
parent 1323d90124
commit 5ff84fb703
+1 -1
View File
@@ -411,6 +411,7 @@ module.exports = class CarRaceCommand extends Command {
} else {
const stars = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'stars.png'));
const vs = await loadImage(path.join(__dirname, '..', '..', 'assets', 'images', 'car-race', 'vs.png'));
ctx.drawImage(vs, (bg.width / 2) - (75 / 2), 80, 75, 75);
ctx.fillStyle = 'black';
ctx.fillRect(105, 45, 135, 135);
ctx.drawImage(userData.avatar, 110, 50, 125, 125);
@@ -426,7 +427,6 @@ module.exports = class CarRaceCommand extends Command {
} else if (turnWin) {
greyscale(ctx, bg.width - 110 - 125, 50, 125, 125);
}
ctx.drawImage(oppoData.avatar, bg.width - 110 - 125, 50, 125, 125);
}
return canvas.toBuffer();
}