From b26e0d49f7b14311a99fdecfef802c3a0f92416a Mon Sep 17 00:00:00 2001 From: sina Date: Wed, 19 Feb 2020 13:51:31 +0330 Subject: [PATCH] Uncomment apAddition --- model.py | 5 ++--- world.py | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/model.py b/model.py index 5db0ca3..5b70229 100644 --- a/model.py +++ b/model.py @@ -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 @@ -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: diff --git a/world.py b/world.py index 6e9b912..ec42a75 100644 --- a/world.py +++ b/world.py @@ -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"] )