fix frontline debriefing (#602)

This commit is contained in:
Druss99
2025-10-23 07:15:37 -04:00
committed by GitHub
parent c46cce01b6
commit 06044dd4c3
2 changed files with 3 additions and 2 deletions

View File

@@ -33,6 +33,7 @@
* **[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 wrt pretense generation and moose script conflicts
* **[Engine]** Fixed a bug where frontline debriefing was not properly calculated
# Retribution v1.4.1 (hotfix)

View File

@@ -174,7 +174,7 @@ class MissionResultsProcessor:
self, debriefing: Debriefing, events: GameUpdateEvents
) -> None:
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:
front_line = cp.front_line_with(enemy_cp)
front_line.update_position()
@@ -345,7 +345,7 @@ class MissionResultsProcessor:
1,
(
settings.reserves_procurement_target
if source.captured
if source.captured.is_blue
else settings.reserves_procurement_target_red
),
)