Display the TGO's income, not the CPs.

This commit is contained in:
Dan Albert 2021-01-30 17:23:18 -08:00
parent 944a8e9cd6
commit ea7bece3b8
2 changed files with 4 additions and 3 deletions

View File

@ -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]** 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]** Fixed incorrect income per turn displayed for strike target tooltip.
* **[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 runways were not registered.

View File

@ -58,9 +58,9 @@ class QMapGroundObject(QMapObject):
@property
def production_per_turn(self) -> int:
production = 0
for g in self.control_point.ground_objects:
if g.category in REWARDS.keys():
production += REWARDS[g.category]
for building in self.buildings:
if building.category in REWARDS.keys():
production += REWARDS[building.category]
return production
def paint(self, painter, option, widget=None) -> None: