minor updates and strike mission objects expand

This commit is contained in:
Vasyl Horbachenko
2018-09-10 01:38:50 +03:00
parent 40bfb6fa88
commit 7a5361c057
13 changed files with 64 additions and 18 deletions

View File

@@ -50,11 +50,15 @@ class Event:
def threat_description(self) -> str:
return ""
def flight_name(self, for_task: typing.Type[Task]) -> str:
def flight_name(self, for_task: typing.Type[typing.Type[Task]]) -> str:
return "Flight"
@property
def tasks(self) -> typing.Collection[Task]:
def tasks(self) -> typing.Collection[typing.Type[Task]]:
return []
@property
def ai_banned_tasks(self) -> typing.Collection[typing.Type[Task]]:
return []
def bonus(self) -> int:

View File

@@ -29,6 +29,10 @@ class StrikeEvent(Event):
else:
return [CAP]
@property
def ai_banned_tasks(self):
return [CAS]
def flight_name(self, for_task: typing.Type[Task]) -> str:
if for_task == CAP:
if self.is_player_attacking: