28 lines
427 B
Python
28 lines
427 B
Python
from Card import *
|
|
cards = {
|
|
1: Attack,
|
|
2: Defend,
|
|
3: Heal,
|
|
4: Supply,
|
|
5: Rob,
|
|
6: Suprise,
|
|
#7: Card,
|
|
8: Aware,
|
|
9: Plan,
|
|
10: Sweep,
|
|
11: Bless,
|
|
12: Poison,
|
|
14: Counter,
|
|
15: Frenzy,
|
|
|
|
}
|
|
def DeckGen(card_ids):
|
|
deck = []
|
|
for card_id in card_ids:
|
|
deck.append(cards[card_id]())
|
|
return deck
|
|
|
|
def CardGen(card_id):
|
|
return cards[card_id]()
|
|
|