From 8cf3344bfeac855f24f852b4ae4bbc2b3d6fc966 Mon Sep 17 00:00:00 2001 From: w Date: Thu, 17 Jul 2025 23:57:00 -0300 Subject: [PATCH] Update card ID format and include in download data --- web/templates/card_creator.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/web/templates/card_creator.html b/web/templates/card_creator.html index b782dfe..5977472 100644 --- a/web/templates/card_creator.html +++ b/web/templates/card_creator.html @@ -189,7 +189,7 @@ function drawCard() { async function drawCardId() { const id = await generateCardId(packInput.value, nameInput.value, powerInput.value, charmInput.value, witInput.value, artistInput.value); ctx.font = "15px sans-serif"; - ctx.fillText("KC-" + id, canvas.width/2, canvas.height - 30); + ctx.fillText("Kemoverse - " + id, canvas.width/2, canvas.height - 30); } @@ -245,7 +245,8 @@ jsonBtn.onclick = () => { wit: witInput.value, flavor: flavorInput.value, artist: artistInput.value, - frame: frameSelect.value + frame: frameSelect.value, + id: generateCardId(packInput.value, nameInput.value, powerInput.value, charmInput.value, witInput.value, artistInput.value) }; const safeName = (nameInput.value || "card").replace(/[^a-z0-9_\-]/gi, "_"); const safePack = (packInput.value || "pack").replace(/[^a-z0-9_\-]/gi, "_"); @@ -273,7 +274,8 @@ zipBtn.onclick = async () => { wit: witInput.value, flavor: flavorInput.value, artist: artistInput.value, - frame: frameSelect.value + frame: frameSelect.value, + id: await generateCardId(packInput.value, nameInput.value, powerInput.value, charmInput.value, witInput.value, artistInput.value) }; const safeName = (nameInput.value || "card").replace(/[^a-z0-9_\-]/gi, "_"); const safePack = (packInput.value || "pack").replace(/[^a-z0-9_\-]/gi, "_");