This commit is contained in:
Dragon Fire
2020-11-21 19:21:39 -05:00
parent e03bc336a1
commit 03969afd61
+3 -3
View File
@@ -134,15 +134,15 @@ module.exports = class YuGiOhGenCommand extends Command {
typeStr += ' ]';
ctx.fillText(typeStr, 60, 894);
ctx.font = '29px Stone Serif';
ctx.fillText(atk, 514, 1081);
ctx.fillText(def, monsterType === 'link' ? 722 : 675, 1081);
ctx.fillText(atk, 512, 1081);
ctx.fillText(def, monsterType === 'link' ? 720 : 673, 1081);
}
ctx.font = '27px Matrix Book';
const wrappedEffect = await wrapText(ctx, effect, 690);
ctx.fillText(wrappedEffect.join('\n'), 63, 930 - (type === 'monster' ? 0 : 31));
ctx.font = '22px Stone Serif';
ctx.fillText(id.toString().padStart(8, '0'), 43, 1128);
ctx.fillText(`XIAO-EN${setID.toString().padStart(3, '0')}`, 589, 854);
ctx.fillText(`XIAO-EN${setID.toString().padStart(3, '0')}`, 589, 849);
return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'yu-gi-oh-gen.png' }] });
} catch (err) {
return msg.reply(`Oh no, an error occurred: \`${err.message}\`. Try again later!`);