From a11439eb58f75a91e58ed6380cf19f000cb246bc Mon Sep 17 00:00:00 2001 From: Jared Miller Date: Mon, 23 Feb 2026 19:17:03 -0500 Subject: [PATCH] Switch cards.js to load full cards.json database --- src/cards.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/cards.js b/src/cards.js index fa92cb1..a7c5500 100644 --- a/src/cards.js +++ b/src/cards.js @@ -1,11 +1,10 @@ let cardDb = {}; export async function initCards() { - const url = new URL("../data/starter-ironclad.json", import.meta.url); + const url = new URL("../data/cards.json", import.meta.url); const res = await fetch(url); if (!res.ok) throw new Error(`failed to load card data: ${res.status}`); - const starterIronclad = await res.json(); - cardDb = { ...starterIronclad }; + cardDb = await res.json(); } export function getCard(id) {