示例#1
0
    'The Grand Tournament', 'Goblins vs Gnomes', 'The League of Explorers'
]
card_sets_available_in_store = [
    'Classic', 'Goblins vs Gnomes', 'The Grand Tournament'
]
card_rarities = ['Legendary', 'Epic', 'Rare', 'Common', 'Free']
probabilities_in_booster = {
    'Legendary': 0.01,
    'Epic': 0.04,
    'Rare': 0.2,
    'Common': 0.75
}
dust_cost_to_craft = {
    'Legendary': 1600,
    'Epic': 400,
    'Rare': 100,
    'Common': 40
}
dust_cost_to_sell = {'Legendary': 400, 'Epic': 100, 'Rare': 20, 'Common': 5}
card_factions = ['Neutral', 'Alliance', 'Horde']
card_races = ['Mech', 'Murloc', 'Demon', 'Totem', 'Dragon', 'Beast', 'Pirate']
player_classes = [
    'Warrior', 'Rogue', 'Priest', 'Warlock', 'Paladin', 'Hunter', 'Druid',
    'Mage', 'Shaman'
]
CONSTRUCTED_DECK = 'constructed'
ARENA_DECK = 'arena'
legendaries = get_all_legendaries()
class_cards = get_cards_for_all_classes()
all_cards = get_all_cards_names()
from data.my_collection import cards as my_collection_cards
from api_tools.tools import get_all_cards_names
from collections import OrderedDict
import json

all_cards = get_all_cards_names()
for card in all_cards:
    if card not in my_collection_cards:
        my_collection_cards[card] = 0

my_collection_cards = OrderedDict(sorted(my_collection_cards.items(), key=lambda t: t[0], reverse=False))
print "{"
for card in my_collection_cards:
    print '    "%s": %d,' % (card, my_collection_cards[card])
print "}"
# print(json.dumps(my_collection_cards))
示例#3
0
 def forbid_all(self):
     self.forbid_card_list(get_all_cards_names())
示例#4
0
 def allow_all(self):
     self.allow_card_list(get_all_cards_names())
示例#5
0
 def forbid_all(self):
     self.forbid_card_list(get_all_cards_names())
示例#6
0
 def allow_all(self):
     self.allow_card_list(get_all_cards_names())