diff --git a/changelog.md b/changelog.md index 11716d44..6a952bda 100644 --- a/changelog.md +++ b/changelog.md @@ -43,6 +43,7 @@ * **[Options]** Made AI jettisoning empty fuel tanks optional (disabled by default) * **[Options]** Add option (so it can be disabled when fixed in DCS) to force air-starts (except for the slots that work) at Nevatim due to https://forum.dcs.world/topic/335545-29-nevatim-ramp-starts-still-bugged/ * **[Cheat]** Add cheat option to manually manage REDFOR's TGOs +* **[UX]** Buy/Replace TGOs for free before the campaign has started ## Fixes * **[Mission Generation]** Anti-ship strikes should use "group attack" in their attack-task diff --git a/qt_ui/windows/groundobject/QGroundObjectBuyMenu.py b/qt_ui/windows/groundobject/QGroundObjectBuyMenu.py index 6a97e804..1f946362 100644 --- a/qt_ui/windows/groundobject/QGroundObjectBuyMenu.py +++ b/qt_ui/windows/groundobject/QGroundObjectBuyMenu.py @@ -189,7 +189,7 @@ class QGroundObjectTemplateLayout(QGroupBox): @property def affordable(self) -> bool: coalition = self.ground_object.coalition - return self.cost <= coalition.budget + return self.cost <= coalition.budget or self.game.turn == 0 def add_theater_group( self, group_name: str, force_group: ForceGroup, groups: list[TgoLayoutUnitGroup] @@ -228,7 +228,7 @@ class QGroundObjectTemplateLayout(QGroupBox): or self.ground_object.heading ) coalition = self.ground_object.coalition - coalition.budget -= self.cost + coalition.budget -= self.cost if self.game.turn else 0 self.ground_object.groups = [] for group_name, groups in self.layout_model.groups.items(): for group in groups: