mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Restore squadrons for Essex-transformed carriers
This commit is contained in:
parent
c15b4ac83f
commit
0671e45dde
@ -346,6 +346,7 @@ class CarrierGroundObjectGenerator(GenericCarrierGroundObjectGenerator):
|
|||||||
[c for c in classes if c == UnitClass.AIRCRAFT_CARRIER]
|
[c for c in classes if c == UnitClass.AIRCRAFT_CARRIER]
|
||||||
):
|
):
|
||||||
self.game.theater.controlpoints.remove(self.control_point)
|
self.game.theater.controlpoints.remove(self.control_point)
|
||||||
|
sqdrns = self.control_point.squadrons
|
||||||
self.control_point = EssexCarrier(
|
self.control_point = EssexCarrier(
|
||||||
self.control_point.name,
|
self.control_point.name,
|
||||||
self.control_point.position,
|
self.control_point.position,
|
||||||
@ -354,6 +355,9 @@ class CarrierGroundObjectGenerator(GenericCarrierGroundObjectGenerator):
|
|||||||
)
|
)
|
||||||
self.control_point.finish_init(self.game)
|
self.control_point.finish_init(self.game)
|
||||||
self.game.theater.controlpoints.append(self.control_point)
|
self.game.theater.controlpoints.append(self.control_point)
|
||||||
|
for sqdrn in sqdrns:
|
||||||
|
if sqdrn.aircraft.lha_capable:
|
||||||
|
sqdrn.location = self.control_point
|
||||||
|
|
||||||
|
|
||||||
class LhaGroundObjectGenerator(GenericCarrierGroundObjectGenerator):
|
class LhaGroundObjectGenerator(GenericCarrierGroundObjectGenerator):
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user