fix war tie ranking with bonus campaign ranking

This commit is contained in:
Maxime Réaux 2026-02-26 14:57:47 +01:00
parent 3fe3bb331c
commit e7d3b962ca
2 changed files with 66 additions and 1 deletions

View file

@ -133,7 +133,6 @@ class WarController:
RefreshScope.WARS_TREE, item_type=ItemType.WAR, item_id=war_id
)
# TODO fix ignored campaign tie-breaks
def resolve_ties(
self, war: War, contexts: List[TieContext]
) -> Dict[Tuple[ContextType, str, int | None], Dict[str, bool]]:
@ -150,6 +149,7 @@ class WarController:
for pid in active
]
counters = [war.get_influence_tokens(pid) for pid in active]
# TODO fix sorted participants included in tie-break after campaign ranking
dialog = TieDialog(
parent=self.app.view,
players=players,