Fix type of Game.budget.

This *is* a float, since the income multiplier is a float. The type
annotations were wrong.
This commit is contained in:
Dan Albert
2021-01-01 13:56:33 -08:00
parent 9671542bdf
commit 6cbc2b707a
2 changed files with 16 additions and 14 deletions

View File

@@ -69,16 +69,18 @@ AWACS_BUDGET_COST = 4
# Bonus multiplier logarithm base
PLAYER_BUDGET_IMPORTANCE_LOG = 2
class TurnState(Enum):
WIN = 0
LOSS = 1
CONTINUE = 2
class Game:
def __init__(self, player_name: str, enemy_name: str,
theater: ConflictTheater, start_date: datetime,
settings: Settings, player_budget: int,
enemy_budget: int) -> None:
settings: Settings, player_budget: float,
enemy_budget: float) -> None:
self.settings = settings
self.events: List[Event] = []
self.theater = theater