Skip to content

Commit

Permalink
fix(mission): correct armor counting as assigned aircraft
Browse files Browse the repository at this point in the history
  • Loading branch information
Wrycu committed Jan 26, 2020
1 parent e553e37 commit 02efb98
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ui/eventmenu.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,8 +226,13 @@ def dampen_count(for_task: typing.Type[Task], unit_type: typing.Type[UnitType],

self.event.player_defending(flights)

ignore_slots = [
'Pinpoint Strike',
]
slot_count = 0
for flight_details in flights.items():
if flight_details[0].name in ignore_slots:
continue
for flight in flight_details[1:]:
for aircraft in flight.items():
slot_count += aircraft[1][0]
Expand Down

0 comments on commit 02efb98

Please sign in to comment.