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:
@@ -25,7 +25,7 @@ from dcs.unittype import UnitType
|
||||
|
||||
from game import Game
|
||||
from game.dcs.groundunittype import GroundUnitType
|
||||
from game.theater import ControlPoint
|
||||
from game.theater import ControlPoint, Player
|
||||
from game.transfers import TransferOrder
|
||||
from qt_ui.models import GameModel
|
||||
from qt_ui.widgets.QLabeledWidget import QLabeledWidget
|
||||
@@ -40,7 +40,7 @@ class TransferDestinationComboBox(QComboBox):
|
||||
for cp in self.game.theater.controlpoints:
|
||||
if (
|
||||
cp != self.origin
|
||||
and cp.is_friendly(to_player=True)
|
||||
and cp.is_friendly(to_player=Player.BLUE)
|
||||
and cp.can_deploy_ground_units
|
||||
):
|
||||
self.addItem(cp.name, cp)
|
||||
|
||||
Reference in New Issue
Block a user