mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
Don't show income for dead buildings on the map.
This commit is contained in:
parent
3d0b47a181
commit
8c5c08d678
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user