mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Fixed duplicated tgo issue with chinese and russian navy generators.
This commit is contained in:
parent
15615a1077
commit
508a5693c9
@ -38,8 +38,8 @@ class ChineseNavyGroupGenerator(ShipGroupGenerator):
|
|||||||
|
|
||||||
if include_dd:
|
if include_dd:
|
||||||
dd_type = random.choice([Type_052C_Destroyer, Type_052B_Destroyer])
|
dd_type = random.choice([Type_052C_Destroyer, Type_052B_Destroyer])
|
||||||
self.add_unit(dd_type, "FF1", self.position.x + 2400, self.position.y + 900, self.heading)
|
self.add_unit(dd_type, "DD1", self.position.x + 2400, self.position.y + 900, self.heading)
|
||||||
self.add_unit(dd_type, "FF2", self.position.x + 2400, self.position.y - 900, self.heading)
|
self.add_unit(dd_type, "DD2", self.position.x + 2400, self.position.y - 900, self.heading)
|
||||||
|
|
||||||
if include_cc:
|
if include_cc:
|
||||||
cc_type = random.choice([CGN_1144_2_Pyotr_Velikiy])
|
cc_type = random.choice([CGN_1144_2_Pyotr_Velikiy])
|
||||||
|
|||||||
@ -42,8 +42,8 @@ class RussianNavyGroupGenerator(ShipGroupGenerator):
|
|||||||
|
|
||||||
if include_dd:
|
if include_dd:
|
||||||
dd_type = random.choice([FFG_11540_Neustrashimy, FF_1135M_Rezky])
|
dd_type = random.choice([FFG_11540_Neustrashimy, FF_1135M_Rezky])
|
||||||
self.add_unit(dd_type, "FF1", self.position.x + 2400, self.position.y + 900, self.heading)
|
self.add_unit(dd_type, "DD1", self.position.x + 2400, self.position.y + 900, self.heading)
|
||||||
self.add_unit(dd_type, "FF2", self.position.x + 2400, self.position.y - 900, self.heading)
|
self.add_unit(dd_type, "DD2", self.position.x + 2400, self.position.y - 900, self.heading)
|
||||||
|
|
||||||
if include_cc:
|
if include_cc:
|
||||||
cc_type = random.choice([CG_1164_Moskva, CGN_1144_2_Pyotr_Velikiy])
|
cc_type = random.choice([CG_1164_Moskva, CGN_1144_2_Pyotr_Velikiy])
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user