minor fixes before rc

This commit is contained in:
Vasyl Horbachenko
2018-09-10 01:48:38 +03:00
parent 7a5361c057
commit fa5259d1f2
9 changed files with 20 additions and 29 deletions

View File

@@ -22,6 +22,10 @@ class StrikeEvent(Event):
def is_successfull(self, debriefing: Debriefing):
return True
@property
def threat_description(self):
return "{} aircraft + AA".format(self.to_cp.base.scramble_count(self.game.settings.multiplier, CAP))
@property
def tasks(self):
if self.is_player_attacking:
@@ -47,7 +51,7 @@ class StrikeEvent(Event):
self.to_cp.base.affect_strength(-self.SINGLE_OBJECT_STRENGTH_INFLUENCE * len(debriefing.destroyed_objects))
def player_attacking(self, flights: ScrambledFlightsDict):
assert flights[CAP] and flights[CAS] and len(flights) == 2, "Invalid flights"
assert CAP in flights and CAS in flights and len(flights) == 2, "Invalid flights"
op = StrikeOperation(
self.game,