add collection tab for Advenatures events

This commit is contained in:
Sumpfork 2015-04-27 13:17:13 -07:00
parent e376f34d2d
commit a7cc600ef7
3 changed files with 10 additions and 4 deletions

View File

@ -2599,3 +2599,6 @@ This counts all cards gained, not just bought cards. For example if the player t
:::Warrior
Each player, in turn order, discards the appropriate number of cards from the top of his deck, trashing the ones costing 3 or 4 Coins. If Warrior is your only Traveler in play, each other player will only discard and potentially trash one card. If you, for example, have a Peasant, a Fugitive, and the Warrior in play, each other player would discard and potentially trash three cards. Cards are only trashed if they cost exactly 3 Coins or exactly 4 Coins. Cards with Potion in the cost (from Alchemy) do not cost exactly 3 Coins or 4 Coins. Cards with an asterisk in the cost (such as Warrior) or + in the cost (such as Masterpiece from Guilds) may be trashed by Warrior (if costing 3 Coin or 4 Coin). Champion and Teacher are not Travelers.
:::Events
Events are not Kingdom cards. In a players Buy phase, when the player can buy a card, the player can buy an Event instead. Buying an Event means paying the cost indicated on the Event and then doing the effect of the Event. The Event just stays on the table, the player does not take it; there is no way for a player to gain one or end up with one in his deck. Buying an Event uses up a Buy; normally a player can either buy a card, or buy an Event. A player with two Buys, such as after playing Ranger, could buy two cards, or buy two Events, or buy a card and an Event (in either order). The same Event can be bought multiple times in a turn if the player has the Buys and available to do it. Some Events give +Buys and so let the player buy further cards/Events afterwards. Players cannot play further Treasures that turn after buying an Event. Buying an Event is not buying a card and so does not trigger cards like Swamp Hag or Goons (from Prosperity). Costs of Events are not affected by cards like Bridge Troll.

View File

@ -680,3 +680,4 @@ Gain a Silver per card you trashed.
57 Training Adventures Event $6 Move your + 1 Coin token to an Action Supply pile (when you play a card from that pile, you first get + 1 Coin).
58 Travelling Fair Adventures Event $2 +2 Buys
When you gain a card this turn, you may put it on top of your deck.
59 Events Adventures Extras Event $* Events are not Kingdom cards. In a players Buy phase, when the player can buy a card, the player can buy an Event instead. Buying an Event means paying the cost indicated on the Event and then doing the effect of the Event. The Event just stays on the table, the player does not take it; there is no way for a player to gain one or end up with one in his deck. Buying an Event uses up a Buy; normally a player can either buy a card, or buy an Event. A player with two Buys, such as after playing Ranger, could buy two cards, or buy two Events, or buy a card and an Event (in either order). The same Event can be bought multiple times in a turn if the player has the Buys and available to do it. Some Events give +Buys and so let the player buy further cards/Events afterwards. Players cannot play further Treasures that turn after buying an Event. Buying an Event is not buying a card and so does not trigger cards like Swamp Hag or Goons (from Prosperity). Costs of Events are not affected by cards like Bridge Troll.

View File

@ -154,7 +154,8 @@ class DominionTabs:
'dark ages': 'dark_ages_set.png',
'dark ages extras': 'dark_ages_set.png',
'guilds': 'guilds_set.png',
'adventures': 'adventures_set.png'
'adventures': 'adventures_set.png',
'adventures extras': 'adventures_set.png'
}
promoImages = {
'walled village': 'walled_village_set.png',
@ -164,7 +165,7 @@ class DominionTabs:
'envoy': 'envoy_set.png',
'prince': 'prince_set.png'
}
@classmethod
def getSetImage(cls, setName, cardName):
if setName in cls.setImages:
@ -571,7 +572,7 @@ class DominionTabs:
def read_card_defs(self, fname, fileobject=None):
cards = []
f = open(fname)
carddef = re.compile("^\d+\t+(?P<name>[\w\-'/ ]+)\t+(?P<set>[\w ]+)\t+(?P<type>[-\w ]+)\t+\$(?P<cost>\d+)( (?P<potioncost>\d)+P)?\t+(?P<description>.*)",
carddef = re.compile("^\d+\t+(?P<name>[\w\-'/ ]+)\t+(?P<set>[\w ]+)\t+(?P<type>[-\w ]+)\t+\$(?P<cost>(\d+|\*))( (?P<potioncost>\d)+P)?\t+(?P<description>.*)",
re.UNICODE)
currentCard = None
for line in f:
@ -585,7 +586,7 @@ class DominionTabs:
currentCard = Card(m.groupdict()["name"].strip(),
m.groupdict()["set"].lower().strip(),
tuple([t.strip() for t in m.groupdict()["type"].split("-")]),
int(m.groupdict()["cost"]),
m.groupdict()["cost"],
'',
potcost)
self.add_definition_line(currentCard, m.groupdict()["description"])
@ -758,6 +759,7 @@ class DominionTabs:
parser.add_option("--language", default='en_us', help="language of card texts")
parser.add_option("--include_blanks", action="store_true", help="include a few dividers with extra text")
parser.add_option("--exclude_events", action="store_true", default=False, help="exclude individual dividers for events")
options, args = parser.parse_args(argstring)
if not options.cost:
options.cost = ['tab']