Skip to content

Commit

Permalink
fix: fixes dcs-liberation#325 for version 2.2.x
Browse files Browse the repository at this point in the history
  • Loading branch information
kavinsky authored and DanAlbert committed Nov 20, 2020
1 parent 206d09f commit c3b028e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions game/game.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ def budget_reward_amount(self):
reward = PLAYER_BUDGET_BASE * len(self.theater.player_points())
for cp in self.theater.player_points():
for g in cp.ground_objects:
if g.category in REWARDS.keys():
if g.category in REWARDS.keys() and not g.is_dead:
reward = reward + REWARDS[g.category]
return reward
else:
Expand Down Expand Up @@ -277,7 +277,7 @@ def _enemy_reinforcement(self):
production = 0.0
for enemy_point in self.theater.enemy_points():
for g in enemy_point.ground_objects:
if g.category in REWARDS.keys():
if g.category in REWARDS.keys() and not g.is_dead:
production = production + REWARDS[g.category]

production = production * 0.75
Expand Down

0 comments on commit c3b028e

Please sign in to comment.