mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user