From 75d33dd76e8efd3283e8e941ccf722d9f3cf7934 Mon Sep 17 00:00:00 2001 From: Pekka Mikkola Date: Mon, 4 May 2015 20:16:39 +0300 Subject: [PATCH] Add single tab for prizes --- card_db/en_us/dominion_card_extras.txt | 3 +++ card_db/en_us/dominion_cards.txt | 6 ++++++ dominion_tabs.py | 2 ++ 3 files changed, 11 insertions(+) diff --git a/card_db/en_us/dominion_card_extras.txt b/card_db/en_us/dominion_card_extras.txt index dd33ffc..da439db 100644 --- a/card_db/en_us/dominion_card_extras.txt +++ b/card_db/en_us/dominion_card_extras.txt @@ -1347,6 +1347,9 @@ This is a Treasure worth 2 coins, like Silver. You play it in your Buy phase, li :::Fairgrounds At the end of the game, this is worth 2 VP per 5 differently named cards in your deck, rounded down. So if you have 0-4 different cards, it is worth 0 VP; if you have 5-9, it is worth 2 VP; if you have 10-14, it is worth 4 VP; if you have 15-19, it is worth 6; and so on. By default there are only 17 differently named cards available in a game, but sometimes there may be more cards, such as via Young Witch's setup rule, or due to Tournament. Use 8 Fairgrounds in a game with 2 players, and 12 for a game with 3 or more players. +:::Prizes +Prizes are never in the supply. They can only be obtained via Tournament. When Tournament is one of the Kingdom cards, set out the pile of five Prizes at the start of the game. + :::Farming Village Reveal cards from the top of your deck until you reveal a Treasure or Action card. If you run out of cards before finding one, shuffle your discard pile (but not the revealed cards), and keep revealing cards. If you still cannot find one, just discard all of the revealed cards. If you do find a Treasure or Action card, put it into your hand, and discard the rest of the revealed cards. A card with multiple types, one of which is Treasure or Action (for example Diadem, a Treasure - Prize), is a Treasure or Action and so will be drawn by this. You do not choose Treasure or Action – you stop on the first card matching either type. diff --git a/card_db/en_us/dominion_cards.txt b/card_db/en_us/dominion_cards.txt index 2d8b18e..d07fdb7 100644 --- a/card_db/en_us/dominion_cards.txt +++ b/card_db/en_us/dominion_cards.txt @@ -268,6 +268,12 @@ Reveal your hand. Reveal cards from your deck until you reveal a card that isn 17 Jester Cornucopia Action - Attack $5 +2 Coins Each other player discards the top card of his deck. If it’s a Victory card he gains a Curse. Otherwise he gains a copy of the discarded card or you do, your choice. 18 Fairgrounds Cornucopia Victory $6 Worth 2 for every 5 differently named cards in your deck (rounded down) +19 Prizes Cornucopia Extras Prize $0 Prizes are never in the supply. They can only be obtained via Tournament. +Bag of Gold: +1 Action; Gain a Gold, putting it on top of your deck. +Diadem: +2 Coins; When you play this, +1 Coins per unused Action you have. +Followers: +2 Cards; Gain an Estate. Each other player gains a Curse and discards down to 3 cards in hand. +Princess: +1 Buy; While this is in play, cards cost 2 Coins less, but not less than 0 Coins. +Trusty Steed: Choose two: +2 Cards; or +2 Actions; or +2 Coins; or gain 4 Silvers and put your deck into your discard pile. 1 Crossroads Hinterlands Action $2 Reveal your hand. +1 Card per Victory card revealed. If this is the first time you played a Crossroads this turn, +3 Actions. diff --git a/dominion_tabs.py b/dominion_tabs.py index a8af5a6..f36b593 100644 --- a/dominion_tabs.py +++ b/dominion_tabs.py @@ -118,6 +118,7 @@ class DominionTabs: CardType(('Action', 'Reserve'), 'action.png'), CardType(('Action', 'Reserve', 'Victory'), 'action.png'), CardType(('Action', 'Traveller'), 'action.png'), + CardType(('Prize',), 'action.png'), CardType(('Event',), 'action.png'), CardType(('Reaction',), 'reaction.png'), CardType(('Reaction', 'Shelter'), 'shelter.png', 0, 1), @@ -154,6 +155,7 @@ class DominionTabs: 'prosperity': 'prosperity_set.png', 'alchemy': 'alchemy_set.png', 'cornucopia': 'cornucopia_set.png', + 'cornucopia extras': 'cornucopia_set.png', 'hinterlands': 'hinterlands_set.png', 'dark ages': 'dark_ages_set.png', 'dark ages extras': 'dark_ages_set.png',