Polished mission generator, fixed sam bug on map view.

This commit is contained in:
Khopa
2020-06-10 22:34:31 +02:00
parent fde3a988b7
commit 2d4287df2a
15 changed files with 286 additions and 108 deletions

View File

@@ -20,7 +20,12 @@ class QStrikeTargetSelectionComboBox(QFilteredComboBox):
self.game = game
self.find_possible_strike_targets()
def get_selected_target(self):
for t in self.targets:
print(t.name + " - " + str(len(t.units)) + " " + str(len(t.buildings)))
def get_selected_target(self) -> StrikeTargetInfo:
n = self.currentText()
for target in self.targets:
if target.name == n: