display tokens in participant tables

This commit is contained in:
Maxime Réaux 2026-02-24 09:06:13 +01:00
parent 71e987304b
commit 81626171c8
4 changed files with 18 additions and 4 deletions

View file

@ -96,6 +96,7 @@ class WarController:
faction=war_part.faction or "",
victory_points=score.victory_points,
narrative_points=dict(score.narrative_points),
tokens=war.get_influence_tokens(war_part.id),
rank_icon=icon_map.get(war_part.id),
)
)
@ -160,6 +161,7 @@ class WarController:
RefreshScope.WARS_TREE, item_type=ItemType.WAR, item_id=war_id
)
# TODO fix spent tokens on tie cancel
def resolve_ties(
self, war: War, contexts: List[TieContext]
) -> Dict[str, Dict[str, bool]]: