mirror of
https://github.com/dcs-liberation/dcs_liberation.git
synced 2025-11-10 14:22:26 +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:
|
def production_per_turn(self) -> int:
|
||||||
production = 0
|
production = 0
|
||||||
for building in self.buildings:
|
for building in self.buildings:
|
||||||
|
if building.is_dead:
|
||||||
|
continue
|
||||||
if building.category in REWARDS.keys():
|
if building.category in REWARDS.keys():
|
||||||
production += REWARDS[building.category]
|
production += REWARDS[building.category]
|
||||||
return production
|
return production
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user