mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
fix: fixes #325 for version 2.2.x
This commit is contained in:
parent
206d09f7f8
commit
c3b028ef4b
@ -154,7 +154,7 @@ class Game:
|
|||||||
reward = PLAYER_BUDGET_BASE * len(self.theater.player_points())
|
reward = PLAYER_BUDGET_BASE * len(self.theater.player_points())
|
||||||
for cp in self.theater.player_points():
|
for cp in self.theater.player_points():
|
||||||
for g in cp.ground_objects:
|
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]
|
reward = reward + REWARDS[g.category]
|
||||||
return reward
|
return reward
|
||||||
else:
|
else:
|
||||||
@ -277,7 +277,7 @@ class Game:
|
|||||||
production = 0.0
|
production = 0.0
|
||||||
for enemy_point in self.theater.enemy_points():
|
for enemy_point in self.theater.enemy_points():
|
||||||
for g in enemy_point.ground_objects:
|
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 + REWARDS[g.category]
|
||||||
|
|
||||||
production = production * 0.75
|
production = production * 0.75
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user