tie-break for narrative points
This commit is contained in:
parent
d72c9902d4
commit
53b1fc916c
8 changed files with 194 additions and 17 deletions
|
|
@ -171,7 +171,19 @@ class CampaignController:
|
|||
counters=counters,
|
||||
context_type=ContextType.CAMPAIGN,
|
||||
context_id=ctx.context_id,
|
||||
context_name=None,
|
||||
)
|
||||
if ctx.context_type == ContextType.OBJECTIVE:
|
||||
campaign_id, objective_id = ctx.context_id.split(":")
|
||||
objective = war.objectives[objective_id]
|
||||
dialog = TieDialog(
|
||||
parent=self.app.view,
|
||||
players=players,
|
||||
counters=counters,
|
||||
context_type=ctx.context_type,
|
||||
context_id=ctx.context_id,
|
||||
context_name=objective.name,
|
||||
)
|
||||
if not dialog.exec():
|
||||
TieResolver.cancel_tie_break(
|
||||
war, ContextType.CAMPAIGN, ctx.context_id, ctx.score_value
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue