import {
	DominionCard,
	TYPE_ACTION,
	TYPE_DURATION,
	TYPE_NIGHT,
	TYPE_REACTION,
	TYPE_TREASURE,
	TYPE_VICTORY,
} from "./types.ts";

const expansionIcon = "";
const author = "Dylan";

const _sampleCard = {
	orientation: "card",
	title: "Sample",
	description: "",
	types: [TYPE_ACTION],
	image: "",
	artist: "",
	author,
	version: "0.1",
	cost: "$",
	preview: "",
	expansionIcon,
};

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,
	},
	{
		orientation: "card",
		title: "Scrap Metal",
		description:
			"$1\n\nYou may trash this.\n\n-\n\nThe first time you buy this on your turn, +1 Buy.",
		types: [TYPE_TREASURE],
		image: "",
		artist: "",
		author: "Dylan & Cal",
		version: "0.1",
		cost: "$1",
		preview: "$1",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "",
		description: "Worth 1% per empty supply pile.",
		types: [TYPE_VICTORY],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$3",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "Postcard",
		description:
			"Set aside a card from the supply costing up to $6. Put a stamp token on it per $ it costs. At the start of each of your turns, remove a stamp token from the card and if there are no more stamp tokens on it, add the card to your hand. Any set aside cards not added to your hand are not considered in your deck at the end of the game.",
		types: [TYPE_ACTION],
		image: "",
		artist: "",
		author: "Dylan & Cal",
		version: "0.1",
		cost: "$3",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "",
		description:
			"After playing an Action card, you may discard this to trash it and gain a card costing up to $2 more than it.",
		types: [TYPE_REACTION],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$3",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "",
		description: "$1\n\nTrash this and gain a card costing $3 or $4.",
		types: [TYPE_TREASURE],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$2",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "",
		description: "+1 Buy",
		types: [TYPE_TREASURE],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$0",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "",
		description:
			"Choose one: +2 Cards, +2 Actions, +2 Buys, or +$2.\n\nChoose one: +1 Card, +1 Action, +1 Buy, or +$1.",
		types: [TYPE_ACTION],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$7",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "",
		description: "$5\n\nTrash this card.",
		types: [TYPE_TREASURE],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$4",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "Tool Shed",
		description: "Gain two cards with a total cost up to $6.",
		types: [TYPE_ACTION],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$4",
		preview: "",
		expansionIcon,
	},
	{
		orientation: "card",
		title: "Coupon",
		description:
			"Either now or at the start of your next turn: +1 Buy, and +$1.\n\n-\n\nWhen you buy a card costing $3 or less, you may play this from your hand and put the card on top of your deck.",
		types: [TYPE_ACTION, TYPE_REACTION, TYPE_DURATION],
		image: "",
		artist: "",
		author: "Dylan",
		version: "0.1",
		cost: "$2",
		preview: "",
		expansionIcon,
	},
	// {
	// 	orientation: "card",
	// 	title: "Borrow",
	// 	description:
	// 		"You may set aside a Curse. If you did, +1 Buy\n+$1.\n\nYou may set aside a Curse. If you did, +$3.\n\nAt the start of your Clean-up phase next turn, if this is still in play, discard this and the set aside Curses. On your next turn, at the end of your Buy phase, for each Curse card set aside, you may pay $2 to return it to the supply.\n\n-\n\nWhen you gain this, play it.",
	// 	types: [TYPE_ACTION, TYPE_DURATION],
	// 	image: "",
	// 	artist: "",
	// 	author: "Dylan",
	// 	version: "0.1",
	// 	cost: "$1",
	// 	preview: "",
	// 	expansionIcon,
	// },
];
