mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 18:58:00 +00:00
Save set unlocking information + won cards.
This commit is contained in:
@@ -36,7 +36,6 @@ public class QuestUtilUnlockSets {
|
|||||||
if (qData.getFormat() == null || qData.getFormat().getExcludedSetCodes().isEmpty()) {
|
if (qData.getFormat() == null || qData.getFormat().getExcludedSetCodes().isEmpty()) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
List<CardEdition> choices = unlockableSets(qData);
|
List<CardEdition> choices = unlockableSets(qData);
|
||||||
|
|
||||||
if (choices == null || choices.size() < 1) {
|
if (choices == null || choices.size() < 1) {
|
||||||
@@ -102,7 +101,6 @@ public class QuestUtilUnlockSets {
|
|||||||
JOptionPane.showMessageDialog(null, "You have successfully unlocked " + chooseEd.getName() + "!",
|
JOptionPane.showMessageDialog(null, "You have successfully unlocked " + chooseEd.getName() + "!",
|
||||||
chooseEd.getName() + " unlocked!",
|
chooseEd.getName() + " unlocked!",
|
||||||
JOptionPane.PLAIN_MESSAGE);
|
JOptionPane.PLAIN_MESSAGE);
|
||||||
|
|
||||||
return chooseEd;
|
return chooseEd;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -250,5 +248,7 @@ public class QuestUtilUnlockSets {
|
|||||||
"You get the following bonus cards:", displayCards);
|
"You get the following bonus cards:", displayCards);
|
||||||
cardView.show();
|
cardView.show();
|
||||||
|
|
||||||
|
qData.save();
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user