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

@@ -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: