From 84b1df75c2b595426560baffbd5410aa2ac589d7 Mon Sep 17 00:00:00 2001 From: Wrycu Date: Sun, 23 Jun 2019 14:27:07 -0700 Subject: [PATCH] feat(attack): air defense spawns further from the thing they are defending --- gen/aaa.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gen/aaa.py b/gen/aaa.py index e2311254..3b2b0426 100644 --- a/gen/aaa.py +++ b/gen/aaa.py @@ -289,8 +289,8 @@ class AAConflictGenerator: def generate(self, units: db.AirDefenseDict): for type, count in units.items(): for _, radial in zip(range(count), self.conflict.radials): - distance = randint(self.conflict.size * DISTANCE_FACTOR[0], self.conflict.size * DISTANCE_FACTOR[1]) - p = self.conflict.position.point_from_heading(radial, distance) + distance = randint(self.conflict.size * DISTANCE_FACTOR[0] + 9000, self.conflict.size * DISTANCE_FACTOR[1] + 14000) + p = self.conflict.position.point_from_heading(random.choice(self.conflict.radials), distance) self.m.aaa_vehicle_group( country=self.conflict.defenders_side,