fix ignored campaign NP tie-break when closing war
This commit is contained in:
parent
b1bde76319
commit
72f80563f1
16 changed files with 314 additions and 219 deletions
|
|
@ -76,11 +76,12 @@ class TieDialog(QDialog):
|
|||
def _get_context_title(
|
||||
context_type: ContextType, context_name: str | None = None
|
||||
) -> str:
|
||||
if context_name:
|
||||
return f"{context_name} tie"
|
||||
titles = {
|
||||
ContextType.BATTLE: "Battle tie",
|
||||
ContextType.CAMPAIGN: "Campaign tie",
|
||||
ContextType.WAR: "War tie",
|
||||
ContextType.CHOICE: "Choice tie",
|
||||
ContextType.OBJECTIVE: f"Objective tie: {context_name}",
|
||||
}
|
||||
return titles.get(context_type, "Tie")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue