Skip to content

Commit b26e0d4

Browse files
author
sina
committed
Uncomment apAddition
1 parent 521c714 commit b26e0d4

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

model.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -311,8 +311,7 @@ class ServerConstants:
311311
class GameConstants:
312312
def __init__(self, max_ap, max_turns, turn_timeout, pick_timeout,
313313
turns_to_upgrade, turns_to_spell, damage_upgrade_addition, range_upgrade_addition,
314-
deck_size, hand_size # , ap_addition
315-
):
314+
deck_size, hand_size, ap_addition):
316315
self.max_ap = max_ap
317316
self.max_turns = max_turns
318317
self.turn_timeout = turn_timeout
@@ -323,7 +322,7 @@ def __init__(self, max_ap, max_turns, turn_timeout, pick_timeout,
323322
self.range_upgrade_addition = range_upgrade_addition
324323
self.deck_size = deck_size
325324
self.hand_size = hand_size
326-
# self.ap_addition = ap_addition
325+
self.ap_addition = ap_addition
327326

328327

329328
class TurnUpdates:

world.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ def _game_constant_init(self, game_constants_msg):
110110
damage_upgrade_addition=game_constants_msg["damageUpgradeAddition"],
111111
range_upgrade_addition=game_constants_msg["rangeUpgradeAddition"],
112112
hand_size=game_constants_msg["handSize"],
113-
deck_size=game_constants_msg["deckSize"]
114-
# ,ap_addition=game_constants_msg["apAddition"]
113+
deck_size=game_constants_msg["deckSize"],
114+
ap_addition=game_constants_msg["apAddition"]
115115
)
116116

117117

0 commit comments

Comments
 (0)