added Gazelle as CAS aircraft

This commit is contained in:
Vasyl Horbachenko 2018-10-13 22:50:26 +03:00
parent e049a97bec
commit 270820de0b
4 changed files with 17 additions and 7 deletions

View File

@ -65,7 +65,8 @@ PRICES = {
# heli
Ka_50: 13,
UH_1H: 5,
SA342M: 8,
UH_1H: 4,
Mi_8MT: 5,
# special
@ -158,6 +159,7 @@ UNIT_BY_TASK = {
Su_25T,
Su_34,
Ka_50,
SA342M,
],
Transport: [
@ -264,6 +266,7 @@ UNIT_BY_COUNTRY = {
A_50,
Ka_50,
SA342M,
UH_1H,
Mi_8MT,
@ -303,6 +306,7 @@ UNIT_BY_COUNTRY = {
E_3A,
Ka_50,
SA342M,
UH_1H,
Mi_8MT,
@ -324,6 +328,7 @@ UNIT_BY_COUNTRY = {
CARRIER_TYPE_BY_PLANE = {
FA_18C_hornet: CVN_74_John_C__Stennis,
Ka_50: LHA_1_Tarawa,
SA342M: LHA_1_Tarawa,
UH_1H: LHA_1_Tarawa,
Mi_8MT: LHA_1_Tarawa,
AV8BNA: LHA_1_Tarawa,

View File

@ -58,14 +58,14 @@ EVENT_PROBABILITIES = {
InfantryTransportEvent: [25, 0],
# events conditionally present; for both enemy and player
BaseAttackEvent: [100, 5],
BaseAttackEvent: [100, 8],
# events randomly present; for both enemy and player
InterceptEvent: [25, 5],
NavalInterceptEvent: [25, 5],
InterceptEvent: [25, 8],
NavalInterceptEvent: [25, 8],
# events randomly present; only for the enemy
InsurgentAttackEvent: [0, 4],
InsurgentAttackEvent: [0, 5],
}
# amount of strength player bases recover for the turn

View File

@ -44,7 +44,7 @@ class FrontlineAttackOperation(Operation):
heli_flights = {k: v for k, v in self.strikegroup.items() if k in helicopters.helicopter_map.values()}
if heli_flights:
self.briefinggen.append_frequency("FARP", "127.5 MHz AM")
self.briefinggen.append_frequency("FARP + Heli flights", "127.5 MHz AM")
for farp, dict in zip(self.groundobjectgen.generate_farps(sum([x[0] for x in heli_flights.values()])),
db.assignedunits_split_to_count(heli_flights, self.groundobjectgen.FARP_CAPACITY)):
self.airgen.generate_cas_strikegroup(*assigned_units_split(dict),

View File

@ -112,7 +112,12 @@ class AircraftConflictGenerator:
group.units[idx].set_client()
group.points[0].tasks.append(OptReactOnThreat(OptReactOnThreat.Values.EvadeFire))
group.set_frequency(251.0)
if unit_type in helicopters.helicopter_map.values():
print(unit_type)
group.set_frequency(127.5)
else:
group.set_frequency(251.0)
def _generate_at_airport(self, name: str, side: Country, unit_type: FlyingType, count: int, client_count: int, airport: Airport = None) -> FlyingGroup:
assert count > 0