Fix refresh on new/open file
This commit is contained in:
parent
765c691b59
commit
5c124f9229
4 changed files with 33 additions and 12 deletions
|
|
@ -88,7 +88,6 @@ class War:
|
|||
else:
|
||||
new_events.append(ev)
|
||||
self.events = new_events
|
||||
# TODO Reopen rounds with battle on sector with influence objective
|
||||
for camp in self.campaigns:
|
||||
for sect in camp.get_all_sectors():
|
||||
if sect.influence_objective_id is not None:
|
||||
|
|
@ -107,7 +106,6 @@ class War:
|
|||
)
|
||||
if new_state is True:
|
||||
has_tie_resolved = any(isinstance(ev, TieResolved) for ev in self.events)
|
||||
|
||||
grant_influence = any(
|
||||
(sect.influence_objective_id is not None)
|
||||
for camp in self.campaigns
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue