Add sun
This commit is contained in:
		| @@ -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]!; | ||||
|   | ||||
| @@ -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 () => { | ||||
|   | ||||
| @@ -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: "", | ||||
| 	}, | ||||
| 	{ | ||||
|   | ||||
		Reference in New Issue
	
	Block a user