diff --git a/src/dominiontext.ts b/src/dominiontext.ts index d1d4488..e5dc571 100644 --- a/src/dominiontext.ts +++ b/src/dominiontext.ts @@ -8,7 +8,7 @@ export type Piece = | { type: "hr" } | { type: "symbol"; - symbol: "coin" | "debt" | "potion" | "vp" | "vp-token"; + symbol: "coin" | "debt" | "potion" | "vp" | "vp-token" | "sun"; isBig?: boolean; prefix?: string; text: string; @@ -377,6 +377,7 @@ export const parse = ( "^": { symbol: "potion", textColor: "white" }, "%": { symbol: "vp", textColor: "white" }, "#": { symbol: "vp-token", textColor: "black" }, + "*": { symbol: "sun", textColor: "black" }, } as const; for (let i = 0; i < text.length; i++) { const char = text[i]!; diff --git a/src/draw.ts b/src/draw.ts index fb3107c..0033ff6 100644 --- a/src/draw.ts +++ b/src/draw.ts @@ -71,6 +71,10 @@ const imageList = [ key: "vp-token", src: "/static/assets/VP-Token.png", }, + { + key: "sun", + src: "/static/assets/Sun.png", + }, ]; export const loadImages = async () => { diff --git a/src/sampleData.ts b/src/sampleData.ts index 566ef6e..4d54d2a 100644 --- a/src/sampleData.ts +++ b/src/sampleData.ts @@ -12,7 +12,7 @@ export const sampleCards: DominionCard[] = [ orientation: "card", title: "Title", description: - "+1 Action\n\nReveal the top card of your deck. If it's an Action card, +1 Action. If it has ^ in its cost, +1 Card.", + "+*\n\nReveal the top card of your deck. If it's an Action card, +1 Action. If it has ^ in its cost, +1 Card.", types: [TYPE_ACTION, TYPE_DURATION, TYPE_REACTION], image: "https://wiki.dominionstrategy.com/images/7/76/AdventurerArt.jpg", artist: "Dall-E", @@ -49,13 +49,13 @@ export const sampleCards: DominionCard[] = [ { orientation: "card", title: "VP Card", - description: "+1#\n\n\n-\n\n\n2%", + description: "Worth 1% per 3 cards you have that cost $4 or $5.", types: [TYPE_VICTORY], image: "", artist: "", author: "", version: "", - cost: "$6", + cost: "$3", preview: "", }, {