Skip to content

Commit

Permalink
Uncomment apAddition
Browse files Browse the repository at this point in the history
  • Loading branch information
sina committed Feb 19, 2020
1 parent 521c714 commit b26e0d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 2 additions & 3 deletions model.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,8 +311,7 @@ class ServerConstants:
class GameConstants:
def __init__(self, max_ap, max_turns, turn_timeout, pick_timeout,
turns_to_upgrade, turns_to_spell, damage_upgrade_addition, range_upgrade_addition,
deck_size, hand_size # , ap_addition
):
deck_size, hand_size, ap_addition):
self.max_ap = max_ap
self.max_turns = max_turns
self.turn_timeout = turn_timeout
Expand All @@ -323,7 +322,7 @@ def __init__(self, max_ap, max_turns, turn_timeout, pick_timeout,
self.range_upgrade_addition = range_upgrade_addition
self.deck_size = deck_size
self.hand_size = hand_size
# self.ap_addition = ap_addition
self.ap_addition = ap_addition


class TurnUpdates:
Expand Down
4 changes: 2 additions & 2 deletions world.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ def _game_constant_init(self, game_constants_msg):
damage_upgrade_addition=game_constants_msg["damageUpgradeAddition"],
range_upgrade_addition=game_constants_msg["rangeUpgradeAddition"],
hand_size=game_constants_msg["handSize"],
deck_size=game_constants_msg["deckSize"]
# ,ap_addition=game_constants_msg["apAddition"]
deck_size=game_constants_msg["deckSize"],
ap_addition=game_constants_msg["apAddition"]
)


Expand Down

0 comments on commit b26e0d4

Please sign in to comment.