From 28f214fb51db4e8a43a1e7653fdcadacfc605eba Mon Sep 17 00:00:00 2001 From: Dylan Pizzo Date: Mon, 6 Jan 2025 22:14:58 -0500 Subject: [PATCH] price -> cost --- src/draw.ts | 2 +- src/sampleData.ts | 2 +- src/types.ts | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) 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 = {