From 05063f2afb76837863ba1db40eaa71a2d3cc1764 Mon Sep 17 00:00:00 2001 From: Dylan Pizzo Date: Tue, 7 Jul 2026 19:25:13 -0400 Subject: [PATCH] re-add cards --- src/cards.ts | 289 +++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 283 insertions(+), 6 deletions(-) diff --git a/src/cards.ts b/src/cards.ts index 5a6c1fb..628db64 100644 --- a/src/cards.ts +++ b/src/cards.ts @@ -1,16 +1,16 @@ import { DominionCard, TYPE_ACTION, - // TYPE_DURATION, - // TYPE_NIGHT, - // TYPE_TREASURE, - // TYPE_VICTORY, + TYPE_DURATION, + TYPE_NIGHT, + TYPE_TREASURE, + TYPE_VICTORY, } from "./types.ts"; const expansionIcon = ""; const author = "Dylan"; -const _sampleCard: DominionCard = { +const _sampleCard = { orientation: "card", title: "Sample", description: "", @@ -24,4 +24,281 @@ const _sampleCard: DominionCard = { expansionIcon, }; -export const cards: DominionCard[] = [_sampleCard, _sampleCard]; +export const cards: DominionCard[] = [ + { + orientation: "card", + title: "Flask", + description: + "+2 Cards\n\nAt the start of your Clean-up phase, you may put a card from your hand onto your deck.", + types: [TYPE_TREASURE], + image: "", + artist: "", + author, + version: "0.1", + cost: "$6", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Promising Land", + description: "Worth 1% per 4 cards you have that cost $4 or $5.", + types: [TYPE_VICTORY], + image: "", + artist: "", + author, + version: "0.1", + cost: "$4", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Steelworker", + description: + "If it's your Action phase, +3 Cards.\n\nIf it's your Buy phase, +1 Buy, and +$1.", + types: [TYPE_ACTION, TYPE_TREASURE], + image: "", + artist: "", + author, + version: "0.2", + cost: "$5", + preview: "$?", + expansionIcon, + }, + { + orientation: "card", + title: "Shovel", + description: + "Play a Treasure card from your hand. Then trash it from play to gain a Treasure card costing up to $3 more than it.", + types: [TYPE_TREASURE], + image: "", + artist: "", + author, + version: "0.1", + cost: "$6", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "High Council", + description: + "+2 Cards\n+1 Action\n+1 Buy\n\nEach player (including you) may choose one: +1 Card, or trash a card from their hand.", + types: [TYPE_ACTION], + image: "", + artist: "", + author: "Lou + Dylan", + version: "0.1", + cost: "$7", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Productive Village", + description: + "If it's your Action phase, +3 Actions.\n\nIf it's your Buy phase, +$1 per unused Action you have (Action, not Action card). +$1 if you have no Actions.", + types: [TYPE_ACTION, TYPE_TREASURE], + image: "", + artist: "", + author: "Dylan", + version: "0.2", + cost: "$3", + preview: "$?", + expansionIcon, + }, + { + orientation: "card", + title: "Secret Society", + description: + "+1 Action\n\nIf you have at least 3 copies of Secret Society in play, trash all of them to gain any number of cards costing at least $2, whose total combined cost is at most $50.\n\n-\n\nThis card cannot be gained other than by buying it. During a player's buy phase, this costs $3 plus $2 per Secret Society they've gained this game.", + types: [TYPE_ACTION], + image: "", + artist: "", + author: "Dylan", + version: "0.1", + cost: "$4*", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Eclipse", + description: + "+1 Card\n\nIf you have no Actions, +1 Action. If you have no Buys, +1 Buy. Return to your Action phase.", + types: [TYPE_NIGHT], + image: "", + artist: "", + author: "Dylan", + version: "0.1", + cost: "$5", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Moonlit Scheme", + description: "You may play an Action card from your hand.", + types: [TYPE_NIGHT], + image: "", + artist: "", + author: "Dylan", + version: "0.1", + cost: "$2", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Beaver", + description: + "Pay $1. If you did, gain a card costing up to the amount of $ you have.", + types: [TYPE_NIGHT], + image: "", + artist: "", + author: "Dylan", + version: "0.1", + cost: "$3", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Silk", + description: "Choose one: +$2, or gain a Silver.", + types: [TYPE_TREASURE], + image: "", + artist: "", + author, + version: "0.1", + cost: "$4", + preview: "$?", + expansionIcon, + }, + { + orientation: "card", + title: "Foundry", + description: + "Choose one: +1 Card, +1 Action and +$1; or trash a card from your hand to gain a card that costs up to $2 more than it.", + types: [TYPE_ACTION], + image: "", + artist: "", + author, + version: "0.1", + cost: "$5", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Vendor", + description: + "Choose three different options: +1 Card, +1 Action, +1 Buy, +$1, trash a card from your hand.", + types: [TYPE_ACTION], + image: "", + artist: "", + author, + version: "0.2", + cost: "$5", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Chateau", + description: + "1%\n\n-\n\nWhen you gain this, choose one: gain an Estate; or +1 Card, +1 Action, +1 Buy, +$1, and if it's your Buy phase, return to your Action phase.", + types: [TYPE_VICTORY], + image: "", + artist: "", + author, + version: "0.1", + cost: "$3", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Retainer", + description: + "Set aside a card from your hand (under this).\n\nAt any time during any of your turns, you may take +1 Action, and add the set aside card to your hand, discarding this from play.\n\nAt the start of each of your Buy phases, if the card is still set aside, +@1.", + types: [TYPE_ACTION, TYPE_DURATION], + image: "", + artist: "", + author, + version: "0.2", + cost: "$2", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Crop Field", + description: "$1\n\n-\n\n1%", + types: [TYPE_TREASURE, TYPE_VICTORY], + image: "", + artist: "", + author, + version: "0.1", + cost: "$3", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Duet", + description: + "Play one of the set aside cards, leaving it there\n\n-\n\nSetup: set aside two unused non-Duration Action cards of the same cost. This costs $1 more than the cost of the set aside cards.", + types: [TYPE_ACTION], + image: "", + artist: "", + author, + version: "0.1", + cost: "$?", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Scraps", + description: + "If it's your Action phase, trash up to 3 cards from your hand.\n\nIf it's your Buy phase, +$1 per 10 cards in the trash (round down).", + types: [TYPE_ACTION, TYPE_TREASURE], + image: "", + artist: "", + author, + version: "0.1", + cost: "$4", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Slogger", + description: + "+1 Card\n+1 Action\n\nReveal the top 5 cards of your deck. Put the Victory cards into your hand, and put the rest back on top in any order.", + types: [TYPE_ACTION], + image: "", + artist: "", + author, + version: "0.1", + cost: "$4", + preview: "", + expansionIcon, + }, + { + orientation: "card", + title: "Vase", + description: + "$2\nReturn this to its pile.\n\n-\n\nWhen you gain this, gain another Vase (that doesn't come with another).", + types: [TYPE_TREASURE], + image: "", + artist: "", + author, + version: "0.1", + cost: "$3", + preview: "", + expansionIcon, + }, +];