This commit is contained in:
Dylan Pizzo 2025-01-07 22:17:05 -08:00
parent 68c4222b3b
commit 6827b966fd
3 changed files with 9 additions and 4 deletions

View File

@ -8,7 +8,7 @@ export type Piece =
| { type: "hr" } | { type: "hr" }
| { | {
type: "symbol"; type: "symbol";
symbol: "coin" | "debt" | "potion" | "vp" | "vp-token"; symbol: "coin" | "debt" | "potion" | "vp" | "vp-token" | "sun";
isBig?: boolean; isBig?: boolean;
prefix?: string; prefix?: string;
text: string; text: string;
@ -377,6 +377,7 @@ export const parse = (
"^": { symbol: "potion", textColor: "white" }, "^": { symbol: "potion", textColor: "white" },
"%": { symbol: "vp", textColor: "white" }, "%": { symbol: "vp", textColor: "white" },
"#": { symbol: "vp-token", textColor: "black" }, "#": { symbol: "vp-token", textColor: "black" },
"*": { symbol: "sun", textColor: "black" },
} as const; } as const;
for (let i = 0; i < text.length; i++) { for (let i = 0; i < text.length; i++) {
const char = text[i]!; const char = text[i]!;

View File

@ -71,6 +71,10 @@ const imageList = [
key: "vp-token", key: "vp-token",
src: "/static/assets/VP-Token.png", src: "/static/assets/VP-Token.png",
}, },
{
key: "sun",
src: "/static/assets/Sun.png",
},
]; ];
export const loadImages = async () => { export const loadImages = async () => {

View File

@ -12,7 +12,7 @@ export const sampleCards: DominionCard[] = [
orientation: "card", orientation: "card",
title: "Title", title: "Title",
description: 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], types: [TYPE_ACTION, TYPE_DURATION, TYPE_REACTION],
image: "https://wiki.dominionstrategy.com/images/7/76/AdventurerArt.jpg", image: "https://wiki.dominionstrategy.com/images/7/76/AdventurerArt.jpg",
artist: "Dall-E", artist: "Dall-E",
@ -49,13 +49,13 @@ export const sampleCards: DominionCard[] = [
{ {
orientation: "card", orientation: "card",
title: "VP 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], types: [TYPE_VICTORY],
image: "", image: "",
artist: "", artist: "",
author: "", author: "",
version: "", version: "",
cost: "$6", cost: "$3",
preview: "", preview: "",
}, },
{ {