refactor of previous commits

refactor to enum

typing and many other fixes

fix tests

attempt to fix some typescript

more typescript fixes

more typescript test fixes

revert all API changes

update to pydcs

mypy fixes

Use properties to check if player is blue/red/neutral

update requirements.txt

black -_-

bump pydcs and fix mypy

add opponent property

bump pydcs
This commit is contained in:
Eclipse/Druss99
2025-01-17 17:02:07 -05:00
committed by Raffson
parent 362ce66f80
commit 31c80dfd02
78 changed files with 739 additions and 350 deletions

View File

@@ -10,6 +10,7 @@ from PySide6.QtWidgets import (
from game import Game
from game.income import Income
from game.theater import Player
from qt_ui.windows.intel import IntelWindow
@@ -76,8 +77,8 @@ class QIntelBox(QGroupBox):
def economic_strength_text(self) -> str:
assert self.game is not None
own = Income(self.game, player=True).total
enemy = Income(self.game, player=False).total
own = Income(self.game, player=Player.BLUE).total
enemy = Income(self.game, player=Player.RED).total
if not enemy:
return "enemy economy ruined"