diff --git a/src/draw.ts b/src/draw.ts index 47b822e..6547024 100644 --- a/src/draw.ts +++ b/src/draw.ts @@ -120,7 +120,7 @@ const drawStandardCard = async ( // Draw the types // Draw the cost context.font = "90pt DominionText"; - await renderDominionText(context, parse(card.price), 210, 1940, 200); + await renderDominionText(context, parse(card.cost), 210, 1940, 200); // Draw the preview // Draw the icon // Draw the credit diff --git a/src/sampleData.ts b/src/sampleData.ts index 46c02cf..5461502 100644 --- a/src/sampleData.ts +++ b/src/sampleData.ts @@ -9,6 +9,6 @@ export const sampleCard: DominionCard = { artist: "", author: "", version: "", - price: "$", + cost: "$", preview: "", }; diff --git a/src/types.ts b/src/types.ts index a6e6600..2d22d0c 100644 --- a/src/types.ts +++ b/src/types.ts @@ -42,7 +42,7 @@ export type DominionCard = artist: string; author: string; version: string; - price: DominionText; + cost: DominionText; preview?: DominionText; } | { @@ -54,7 +54,7 @@ export type DominionCard = artist: string; author: string; version: string; - price: DominionText; + cost: DominionText; }; export type DominionCustomSymbol = {