mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Remove the randomness from SAM group size.
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import random
|
||||
|
||||
from dcs.mapping import Point
|
||||
from dcs.vehicles import AirDefence
|
||||
|
||||
@@ -45,17 +43,13 @@ class SA10Generator(AirDefenseGroupGenerator):
|
||||
# Command Post
|
||||
self.add_unit(self.cp, "CP", self.position.x, self.position.y, self.heading)
|
||||
|
||||
# 2 Tracking radars
|
||||
# 1 Tracking radar
|
||||
self.add_unit(
|
||||
self.tr1, "TR1", self.position.x - 40, self.position.y - 40, self.heading
|
||||
)
|
||||
|
||||
self.add_unit(
|
||||
self.tr2, "TR2", self.position.x + 40, self.position.y - 40, self.heading
|
||||
)
|
||||
|
||||
# 2 different launcher type (C & D)
|
||||
num_launchers = random.randint(6, 8)
|
||||
num_launchers = 6
|
||||
positions = self.get_circular_position(
|
||||
num_launchers, launcher_distance=100, coverage=360
|
||||
)
|
||||
@@ -78,7 +72,7 @@ class SA10Generator(AirDefenseGroupGenerator):
|
||||
def generate_defensive_groups(self) -> None:
|
||||
# AAA for defending against close targets.
|
||||
aa_group = self.add_auxiliary_group(SkynetRole.NoSkynetBehavior)
|
||||
num_launchers = random.randint(6, 8)
|
||||
num_launchers = 2
|
||||
positions = self.get_circular_position(
|
||||
num_launchers, launcher_distance=210, coverage=360
|
||||
)
|
||||
@@ -103,7 +97,7 @@ class Tier2SA10Generator(SA10Generator):
|
||||
|
||||
# SA-15 for both shorter range targets and point defense.
|
||||
pd_group = self.add_auxiliary_group(SkynetRole.PointDefense)
|
||||
num_launchers = random.randint(2, 4)
|
||||
num_launchers = 2
|
||||
positions = self.get_circular_position(
|
||||
num_launchers, launcher_distance=140, coverage=360
|
||||
)
|
||||
@@ -125,7 +119,7 @@ class Tier3SA10Generator(SA10Generator):
|
||||
def generate_defensive_groups(self) -> None:
|
||||
# AAA for defending against close targets.
|
||||
aa_group = self.add_auxiliary_group(SkynetRole.NoSkynetBehavior)
|
||||
num_launchers = random.randint(6, 8)
|
||||
num_launchers = 2
|
||||
positions = self.get_circular_position(
|
||||
num_launchers, launcher_distance=210, coverage=360
|
||||
)
|
||||
@@ -140,7 +134,7 @@ class Tier3SA10Generator(SA10Generator):
|
||||
|
||||
# SA-15 for both shorter range targets and point defense.
|
||||
pd_group = self.add_auxiliary_group(SkynetRole.PointDefense)
|
||||
num_launchers = random.randint(2, 4)
|
||||
num_launchers = 2
|
||||
positions = self.get_circular_position(
|
||||
num_launchers, launcher_distance=140, coverage=360
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user