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) {