mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Fine-tune TGO-purchasability logic
This commit is contained in:
@@ -104,14 +104,14 @@ class QGroundObjectMenu(QDialog):
|
||||
self.buy_replace.clicked.connect(self.buy_group)
|
||||
self.buy_replace.setProperty("style", "btn-success")
|
||||
|
||||
if self.ground_object.purchasable or self.game.turn == 0:
|
||||
if self.ground_object.purchasable:
|
||||
# if not purchasable but is_iads => naval unit
|
||||
if self.total_value > 0:
|
||||
self.actionLayout.addWidget(self.sell_all_button)
|
||||
self.actionLayout.addWidget(self.buy_replace)
|
||||
|
||||
if self.show_buy_sell_actions and (
|
||||
self.ground_object.purchasable or self.game.turn == 0
|
||||
):
|
||||
if self.show_buy_sell_actions and self.ground_object.purchasable:
|
||||
# if not purchasable but is_iads => naval unit
|
||||
self.mainLayout.addLayout(self.actionLayout)
|
||||
self.setLayout(self.mainLayout)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user