diff --git a/game/event/event.py b/game/event/event.py index 01be1f59..6af3d6c9 100644 --- a/game/event/event.py +++ b/game/event/event.py @@ -65,25 +65,10 @@ class Event: else: return self.departure_cp - @property - def threat_description(self) -> str: - return "" - - def flight_name(self, for_task: typing.Type[typing.Type[Task]]) -> str: - return "Flight" - @property def tasks(self) -> typing.Collection[typing.Type[Task]]: return [] - @property - def ai_banned_tasks(self) -> typing.Collection[typing.Type[Task]]: - return [] - - @property - def player_banned_tasks(self) -> typing.Collection[typing.Type[Task]]: - return [] - @property def global_cp_available(self) -> bool: return False @@ -255,7 +240,6 @@ class Event: # Destroyed units carcass # ------------------------- - for destroyed_unit in debriefing.destroyed_units: self.game.add_destroyed_units(destroyed_unit) diff --git a/game/event/frontlineattack.py b/game/event/frontlineattack.py index 5b344247..e548440f 100644 --- a/game/event/frontlineattack.py +++ b/game/event/frontlineattack.py @@ -4,16 +4,6 @@ from userdata.debriefing import Debriefing class FrontlineAttackEvent(Event): - TARGET_VARIETY = 2 - TARGET_AMOUNT_FACTOR = 0.5 - ATTACKER_AMOUNT_FACTOR = 0.4 - ATTACKER_DEFENDER_FACTOR = 0.7 - STRENGTH_INFLUENCE = 0.3 - SUCCESS_FACTOR = 1.5 - - @property - def threat_description(self): - return "{} vehicles".format(self.to_cp.base.assemble_count()) @property def tasks(self) -> typing.Collection[typing.Type[Task]]: @@ -26,14 +16,6 @@ class FrontlineAttackEvent(Event): def global_cp_available(self) -> bool: return True - def flight_name(self, for_task: typing.Type[Task]) -> str: - if for_task == CAS: - return "CAS flight" - elif for_task == CAP: - return "CAP flight" - elif for_task == PinpointStrike: - return "Ground attack" - def __str__(self): return "Frontline attack"