display effective ranking in campaign participants table
This commit is contained in:
parent
60992c22df
commit
0bfe27e0d3
13 changed files with 176 additions and 8 deletions
|
|
@ -3,7 +3,6 @@ from typing import List
|
|||
|
||||
from warchron.constants import ContextType
|
||||
from warchron.model.exception import ForbiddenOperation
|
||||
from warchron.model.result_checker import ResultChecker
|
||||
from warchron.model.war_event import InfluenceGained
|
||||
from warchron.model.war import War
|
||||
from warchron.model.campaign import Campaign
|
||||
|
|
@ -26,6 +25,8 @@ class ClosureService:
|
|||
|
||||
@staticmethod
|
||||
def apply_battle_outcomes(war: War, campaign: Campaign, battle: Battle) -> None:
|
||||
from warchron.model.result_checker import ResultChecker
|
||||
|
||||
already_granted = any(
|
||||
isinstance(e, InfluenceGained)
|
||||
and e.context_id == f"battle:{battle.sector_id}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue