diff --git a/web/templates/card_creator.html b/web/templates/card_creator.html
index ae7b5d5..e36325a 100644
--- a/web/templates/card_creator.html
+++ b/web/templates/card_creator.html
@@ -40,6 +40,8 @@
Use this tool to create custom Kemoverse cards! Fill in the details below, upload your art, and generate a card image.
Note: The card ID is generated based on the details, so make sure to fill them out!
+
+
@@ -209,9 +214,9 @@ function drawCard() {
}
async function drawCardId() {
- const id = await generateCardId(packInput.value, nameInput.value, powerInput.value, charmInput.value, witInput.value, artistInput.value);
+ const id = await generateCardId(packInput.value, nameInput.value, powerInput.value, charmInput.value, witInput.value, artistInput.value,packIdInput.value);
ctx.font = "15px sans-serif";
- ctx.fillText("Kemoverse - " + id, canvas.width/2, canvas.height - 30);
+ ctx.fillText("Kemoverse - SHA: " + id + " - PI:" + packIdInput.value, canvas.width/2, canvas.height - 30);
}
@@ -238,7 +243,7 @@ function wrapText(text, x, y, maxWidth, lineHeight) {
}
// Update card live when inputs change
-[nameInput, powerInput, charmInput, witInput, flavorInput,packInput,artistInput].forEach(input => {
+[nameInput, powerInput, charmInput, witInput, flavorInput, packInput, artistInput, packIdInput].forEach(input => {
input.addEventListener("input", drawCard);
});
@@ -306,13 +311,14 @@ jsonBtn.onclick = () => {
const cardData = {
name: nameInput.value,
pack: packInput.value,
+ pack_id: packIdInput.value,
power: powerInput.value,
charm: charmInput.value,
wit: witInput.value,
flavor: flavorInput.value,
artist: artistInput.value,
frame: frameSelect.value,
- id: generateCardId(packInput.value, nameInput.value, powerInput.value, charmInput.value, witInput.value, artistInput.value)
+ id: generateCardId(packInput.value, nameInput.value, powerInput.value, charmInput.value, witInput.value, artistInput.value, packIdInput.value)
};
const safeName = (nameInput.value || "card").replace(/[^a-z0-9_\-]/gi, "_");
const safePack = (packInput.value || "pack").replace(/[^a-z0-9_\-]/gi, "_");
@@ -335,6 +341,7 @@ zipBtn.onclick = async () => {
const cardData = {
name: nameInput.value,
pack: packInput.value,
+ pack_id: packIdInput.value,
power: powerInput.value,
charm: charmInput.value,
wit: witInput.value,