mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user