mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
Edit deck stage of draft tournaments now persists between loading and saving quests.
This commit is contained in:
@@ -29,7 +29,9 @@ public class QuestAchievements {
|
||||
private int winstreakBest = 0;
|
||||
private int winstreakCurrent = 0;
|
||||
private int lost;
|
||||
|
||||
|
||||
private boolean tournamentStarted = false;
|
||||
|
||||
// Difficulty - will store only index from now.
|
||||
private int difficulty;
|
||||
|
||||
@@ -49,6 +51,7 @@ public class QuestAchievements {
|
||||
drafts.remove(drafts.get(currentDraft));
|
||||
currentDraft = -1;
|
||||
winCountAtEndOfDraft = win;
|
||||
tournamentStarted = false;
|
||||
FModel.getQuest().save();
|
||||
}
|
||||
|
||||
@@ -204,8 +207,8 @@ public class QuestAchievements {
|
||||
return drafts;
|
||||
}
|
||||
|
||||
public boolean isTournamentActive() {
|
||||
return currentDraft >= 0;
|
||||
public boolean isTournamentStarted() {
|
||||
return currentDraft >= 0 && tournamentStarted;
|
||||
}
|
||||
|
||||
public void generateNewTournaments() {
|
||||
@@ -243,5 +246,9 @@ public class QuestAchievements {
|
||||
public QuestEventDraft getCurrentDraft() {
|
||||
return drafts.get(currentDraft);
|
||||
}
|
||||
|
||||
public void setTournamentStarted(final boolean started) {
|
||||
tournamentStarted = started;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user