mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +00:00
Move armor TGO purchase off find_unittype.
This commit is contained in:
parent
fd85efbf55
commit
622a171ac4
@ -340,11 +340,7 @@ class QBuyGroupForGroundObjectDialog(QDialog):
|
|||||||
buy_ewr_layout.addLayout(stretch, 2, 0)
|
buy_ewr_layout.addLayout(stretch, 2, 0)
|
||||||
|
|
||||||
# Armored units
|
# Armored units
|
||||||
|
for unit in set(faction.ground_units):
|
||||||
armored_units = db.find_unittype(
|
|
||||||
PinpointStrike, faction.name
|
|
||||||
) # Todo : refactor this legacy nonsense
|
|
||||||
for unit in set(armored_units):
|
|
||||||
self.buyArmorCombo.addItem(
|
self.buyArmorCombo.addItem(
|
||||||
db.unit_type_name_2(unit) + " [$" + str(db.PRICES[unit]) + "M]",
|
db.unit_type_name_2(unit) + " [$" + str(db.PRICES[unit]) + "M]",
|
||||||
userData=unit,
|
userData=unit,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user