File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 1
1
import json
2
2
from hearthbreaker .agents .basic_agents import RandomAgent
3
+ from hearthbreaker .cards .heroes import hero_for_class
3
4
from hearthbreaker .constants import CHARACTER_CLASS
4
5
from hearthbreaker .engine import Game , Deck , card_lookup
5
6
from hearthbreaker .cards import *
@@ -25,7 +26,7 @@ def load_deck(filename):
25
26
if len (cards ) > 30 :
26
27
pass
27
28
28
- return Deck (cards , character_class )
29
+ return Deck (cards , hero_for_class ( character_class ) )
29
30
30
31
31
32
def do_stuff ():
Original file line number Diff line number Diff line change 3
3
import sys
4
4
5
5
from hearthbreaker .agents import registry
6
+ from hearthbreaker .cards .heroes import hero_for_class
6
7
from hearthbreaker .constants import CHARACTER_CLASS
7
8
from hearthbreaker .engine import Game , Deck , card_lookup
8
9
from hearthbreaker .ui .game_printer import GameRender
@@ -28,7 +29,7 @@ def load_deck(filename):
28
29
if len (cards ) > 30 :
29
30
pass
30
31
31
- return Deck (cards , character_class )
32
+ return Deck (cards , hero_for_class ( character_class ) )
32
33
33
34
34
35
def print_usage ():
You can’t perform that action at this time.
0 commit comments