From b83ef23021f837d38fa4947b19c2533ea404beb5 Mon Sep 17 00:00:00 2001 From: Dragon Fire Date: Sat, 21 Nov 2020 19:31:42 -0500 Subject: [PATCH] Fix --- commands/edit-image/yu-gi-oh-gen.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/commands/edit-image/yu-gi-oh-gen.js b/commands/edit-image/yu-gi-oh-gen.js index cc458f04..643a5752 100644 --- a/commands/edit-image/yu-gi-oh-gen.js +++ b/commands/edit-image/yu-gi-oh-gen.js @@ -124,7 +124,7 @@ module.exports = class YuGiOhGenCommand extends Command { ctx.fillStyle = monsterType === 'xyz' || monsterType === 'link' ? 'white' : 'black'; ctx.textBaseline = 'top'; ctx.font = '87px Matrix'; - ctx.fillText(name, 57, 57, 620); + ctx.fillText(name, 60, 57, 620); ctx.fillStyle = 'black'; ctx.font = '31px Stone Serif Small Caps'; if (type === 'monster') { @@ -142,6 +142,7 @@ module.exports = class YuGiOhGenCommand extends Command { const wrappedEffect = await wrapText(ctx, effect, 690); ctx.fillText(wrappedEffect.join('\n'), 63, 930 - (type === 'monster' ? 0 : 31)); ctx.font = '22px Stone Serif'; + ctx.fillStyle = monsterType === 'xyz' ? 'white' : 'black'; ctx.fillText(id.toString().padStart(8, '0'), 43, 1128); ctx.fillText(`XIAO-EN${setID.toString().padStart(3, '0')}`, 589, 849); return msg.say({ files: [{ attachment: canvas.toBuffer(), name: 'yu-gi-oh-gen.png' }] });