correct prices for ewr and sams

prices will now be calculated for the whole group by the generator by
looking up the price using the  GroundUnitType wrapper

fixes #1163
This commit is contained in:
RndName
2021-06-24 21:50:02 +02:00
committed by Dan Albert
parent 3f42f1281d
commit 96be6c0efe
5 changed files with 29 additions and 18 deletions

View File

@@ -13,11 +13,6 @@ class EwrGenerator(GroupGenerator):
def name(cls) -> str:
return cls.unit_type.name
@staticmethod
def price() -> int:
# TODO: Differentiate sites.
return 20
def generate(self) -> None:
self.add_unit(
self.unit_type, "EWR", self.position.x, self.position.y, self.heading