mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Display the TGO's income, not the CPs.
This commit is contained in:
parent
944a8e9cd6
commit
ea7bece3b8
@ -54,6 +54,7 @@ Saves from 2.3 are not compatible with 2.4.
|
|||||||
* **[UI]** Base intel menu no longer compresses text, and is now scrollable.
|
* **[UI]** Base intel menu no longer compresses text, and is now scrollable.
|
||||||
* **[UI]** Edit Flight window is now dynamically sized to adapt to the width of waypoint names, so they no longer get truncated.
|
* **[UI]** Edit Flight window is now dynamically sized to adapt to the width of waypoint names, so they no longer get truncated.
|
||||||
* **[UI]** Budget income display is now rounded to 2 decimal places.
|
* **[UI]** Budget income display is now rounded to 2 decimal places.
|
||||||
|
* **[UI]** Fixed incorrect income per turn displayed for strike target tooltip.
|
||||||
* **[Factions]** USA with C-130 faction now links to the required mod.
|
* **[Factions]** USA with C-130 faction now links to the required mod.
|
||||||
* **[Campaign]** Fixed issue where destroyed buildings would sometimes not count as destroyed and thus respawn.
|
* **[Campaign]** Fixed issue where destroyed buildings would sometimes not count as destroyed and thus respawn.
|
||||||
* **[Campaign]** Fixed issue where destroyed runways were not registered.
|
* **[Campaign]** Fixed issue where destroyed runways were not registered.
|
||||||
|
|||||||
@ -58,9 +58,9 @@ class QMapGroundObject(QMapObject):
|
|||||||
@property
|
@property
|
||||||
def production_per_turn(self) -> int:
|
def production_per_turn(self) -> int:
|
||||||
production = 0
|
production = 0
|
||||||
for g in self.control_point.ground_objects:
|
for building in self.buildings:
|
||||||
if g.category in REWARDS.keys():
|
if building.category in REWARDS.keys():
|
||||||
production += REWARDS[g.category]
|
production += REWARDS[building.category]
|
||||||
return production
|
return production
|
||||||
|
|
||||||
def paint(self, painter, option, widget=None) -> None:
|
def paint(self, painter, option, widget=None) -> None:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user