fix(base): correct AA spawn

This commit is contained in:
Wrycu 2019-06-22 14:17:28 -07:00
parent f5851d09f5
commit c7eae7e97a
No known key found for this signature in database
GPG Key ID: BDB10F9DDF6AF8D0

View File

@ -158,10 +158,8 @@ class Base:
return int(self.total_armor * 0.5)
def assemble_aa_count(self) -> int:
if self.strength > STRENGTH_AA_ASSEMBLE_MIN:
return self.total_aa
else:
return 0
# previous logic removed because we always want the full air defense capabilities.
return self.total_aa
def scramble_sweep(self, multiplier: float) -> typing.Dict[PlaneType, int]:
return self._find_best_planes(CAP, self.scramble_count(multiplier, CAP))