choice tie-break and random fallback + exception cleanup + war<->camp pid
This commit is contained in:
parent
241d7f10f5
commit
241e76c937
15 changed files with 241 additions and 157 deletions
|
|
@ -77,6 +77,7 @@ class War:
|
|||
new_events: List[WarEvent] = []
|
||||
for ev in self.events:
|
||||
if isinstance(ev, (TieResolved)):
|
||||
# FIXME cancel TieResolved + TokenSpent
|
||||
if ev.context_type == ContextType.BATTLE:
|
||||
battle = self.get_battle(ev.context_id)
|
||||
campaign = self.get_campaign_by_sector(battle.sector_id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue