Don't show income for dead buildings on the map.

This commit is contained in:
Dan Albert 2021-01-30 18:27:07 -08:00
parent 3d0b47a181
commit 8c5c08d678

View File

@ -59,6 +59,8 @@ class QMapGroundObject(QMapObject):
def production_per_turn(self) -> int:
production = 0
for building in self.buildings:
if building.is_dead:
continue
if building.category in REWARDS.keys():
production += REWARDS[building.category]
return production