mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Cleaned up dead code
This commit is contained in:
parent
2c07257bf6
commit
c08768f648
@ -65,25 +65,10 @@ class Event:
|
|||||||
else:
|
else:
|
||||||
return self.departure_cp
|
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
|
@property
|
||||||
def tasks(self) -> typing.Collection[typing.Type[Task]]:
|
def tasks(self) -> typing.Collection[typing.Type[Task]]:
|
||||||
return []
|
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
|
@property
|
||||||
def global_cp_available(self) -> bool:
|
def global_cp_available(self) -> bool:
|
||||||
return False
|
return False
|
||||||
@ -255,7 +240,6 @@ class Event:
|
|||||||
|
|
||||||
# Destroyed units carcass
|
# Destroyed units carcass
|
||||||
# -------------------------
|
# -------------------------
|
||||||
|
|
||||||
for destroyed_unit in debriefing.destroyed_units:
|
for destroyed_unit in debriefing.destroyed_units:
|
||||||
self.game.add_destroyed_units(destroyed_unit)
|
self.game.add_destroyed_units(destroyed_unit)
|
||||||
|
|
||||||
|
|||||||
@ -4,16 +4,6 @@ from userdata.debriefing import Debriefing
|
|||||||
|
|
||||||
|
|
||||||
class FrontlineAttackEvent(Event):
|
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
|
@property
|
||||||
def tasks(self) -> typing.Collection[typing.Type[Task]]:
|
def tasks(self) -> typing.Collection[typing.Type[Task]]:
|
||||||
@ -26,14 +16,6 @@ class FrontlineAttackEvent(Event):
|
|||||||
def global_cp_available(self) -> bool:
|
def global_cp_available(self) -> bool:
|
||||||
return True
|
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):
|
def __str__(self):
|
||||||
return "Frontline attack"
|
return "Frontline attack"
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user