fix non-English name lookup when specifying expansions
This commit is contained in:
parent
516ad84489
commit
61ae0b0f09
@ -12,7 +12,7 @@
|
||||
12 Moneylender Dominion Action $4 Trash a Copper from your hand. If you do, +3 Coins.
|
||||
13 Remodel Dominion Action $4 Trash a card from your hand. Gain a card costing up to 2 Coins more than the trashed card.
|
||||
14 Smithy Dominion Action $4 +3 Cards.
|
||||
15 Spy Dominion Action - Attack $4 +1 Card, +1 Action, Each player (including you) reveals the top card of his deck and either discards it or puts it back, your chouce.
|
||||
15 Spy Dominion Action - Attack $4 +1 Card, +1 Action, Each player (including you) reveals the top card of his deck and either discards it or puts it back, your choice.
|
||||
16 Thief Dominion Action - Attack $4 Each other player reveals the top 2 cards of his deck. If they revealed any Treasure cards, they trash one of them that you choose. You may gain any or all of these trashed cards. They discard the other revealed cards.
|
||||
17 Throne Room Dominion Action $4 Choose an Action card in your hand. Play it twice.
|
||||
18 Council Room Dominion Action $5 +4 Cards, +1 Buy, Each other player draws a card.
|
||||
@ -473,7 +473,7 @@ gain a Duchy or 3 Estates.
|
||||
If you do, +2 Cards, + 2 Coins,
|
||||
and each other player discards down to 3 cards in hand.
|
||||
(This is not in the Supply.)
|
||||
41 Mystic Dark Ages Action $5 +1Action
|
||||
41 Mystic Dark Ages Action $5 +1 Action
|
||||
+ 2 Coins
|
||||
Name a card.
|
||||
Reveal the top card of your deck.
|
||||
|
||||
@ -916,6 +916,8 @@ class DominionTabs:
|
||||
|
||||
if self.options.expansions:
|
||||
self.options.expansions = [o.lower() for o in self.options.expansions]
|
||||
reverseMapping = {v: k for k, v in DominionTabs.language_mapping.iteritems()}
|
||||
self.options.expansions = [reverseMapping.get(e, e) for e in self.options.expansions]
|
||||
filteredCards = []
|
||||
knownExpansions = set()
|
||||
for c in cards:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user