mirror of
https://github.com/dcs-retribution/dcs-retribution.git
synced 2025-11-10 15:41:24 +00:00
fix frontline debriefing (#602)
This commit is contained in:
@@ -33,6 +33,7 @@
|
|||||||
* **[Flight Plans]** Fixed a bug where divert airfield was broken for opfor
|
* **[Flight Plans]** Fixed a bug where divert airfield was broken for opfor
|
||||||
* **[Engine]** Fixed a bug with state.json loading wrt transfers
|
* **[Engine]** Fixed a bug with state.json loading wrt transfers
|
||||||
* **[Engine]** Fixed a bug wrt pretense generation and moose script conflicts
|
* **[Engine]** Fixed a bug wrt pretense generation and moose script conflicts
|
||||||
|
* **[Engine]** Fixed a bug where frontline debriefing was not properly calculated
|
||||||
|
|
||||||
# Retribution v1.4.1 (hotfix)
|
# Retribution v1.4.1 (hotfix)
|
||||||
|
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class MissionResultsProcessor:
|
|||||||
self, debriefing: Debriefing, events: GameUpdateEvents
|
self, debriefing: Debriefing, events: GameUpdateEvents
|
||||||
) -> None:
|
) -> None:
|
||||||
for cp in self.game.theater.player_points():
|
for cp in self.game.theater.player_points():
|
||||||
enemy_cps = [e for e in cp.connected_points if not e.captured]
|
enemy_cps = [e for e in cp.connected_points if e.captured.is_red]
|
||||||
for enemy_cp in enemy_cps:
|
for enemy_cp in enemy_cps:
|
||||||
front_line = cp.front_line_with(enemy_cp)
|
front_line = cp.front_line_with(enemy_cp)
|
||||||
front_line.update_position()
|
front_line.update_position()
|
||||||
@@ -345,7 +345,7 @@ class MissionResultsProcessor:
|
|||||||
1,
|
1,
|
||||||
(
|
(
|
||||||
settings.reserves_procurement_target
|
settings.reserves_procurement_target
|
||||||
if source.captured
|
if source.captured.is_blue
|
||||||
else settings.reserves_procurement_target_red
|
else settings.reserves_procurement_target_red
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in New Issue
Block a user