Add files via upload

This commit is contained in:
neogeek23 2017-12-24 19:27:19 -06:00 committed by GitHub
parent 4ebe98a0a1
commit 666f0fc091
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -51,7 +51,7 @@ def get_card_info():
# [name, cost, cardtype, v, c, a, r, b, d, effect, count] - value to pass to Card() # [name, cost, cardtype, v, c, a, r, b, d, effect, count] - value to pass to Card()
return [["Copper", 0, Card.CardType.Treasure, 0, 1, 0, 0, 0, 0, None, 60], # 1 return [["Copper", 0, Card.CardType.Treasure, 0, 1, 0, 0, 0, 0, None, 60], # 1
["Silver", 3, Card.CardType.Treasure, 0, 2, 0, 0, 0, 0, None, 40], # 2 ["Silver", 3, Card.CardType.Treasure, 0, 2, 0, 0, 0, 0, None, 40], # 2
["Gold", 6, Card.CardType.Treasure, 0, 3, 0, 0, 0, 0, None, 30], # 3 ["Gold", 6, Card.CardT]ype.Treasure, 0, 3, 0, 0, 0, 0, None, 30], # 3
["Estate", 2, Card.CardType.Victory, 1, 0, 0, 0, 0, 0, None, 24], # 4 ["Estate", 2, Card.CardType.Victory, 1, 0, 0, 0, 0, 0, None, 24], # 4
["Dutchy", 5, Card.CardType.Victory, 3, 0, 0, 0, 0, 0, None, 12], # 5 ["Dutchy", 5, Card.CardType.Victory, 3, 0, 0, 0, 0, 0, None, 12], # 5

View File

@ -98,8 +98,10 @@ class Player:
self.__print_deck() self.__print_deck()
def __gain_turn_events(self): def __gain_turn_events(self):
self.add_actions(1) self.__actions.int = 1
self.add_buys(1) self.__buys = 1
self.__purchase_power = 0
self.__reactions.int = 0
def play_card(self, acceptable_card_type, chances, counter): def play_card(self, acceptable_card_type, chances, counter):
if chances > 0 and self.__hand.contains_one_of(acceptable_card_type): if chances > 0 and self.__hand.contains_one_of(acceptable_card_type):