Correct version of SSubmenuQuestUtil (actually enables the unlocking code), new sets cost a little more.

This commit is contained in:
RumbleBBU
2012-11-01 10:27:33 +00:00
parent 8f64e87396
commit a080b4480a
2 changed files with 4 additions and 3 deletions

View File

@@ -29,6 +29,7 @@ import forge.quest.QuestEvent;
import forge.quest.QuestEventChallenge; import forge.quest.QuestEventChallenge;
import forge.quest.QuestMode; import forge.quest.QuestMode;
import forge.quest.QuestUtil; import forge.quest.QuestUtil;
import forge.quest.QuestUtilUnlockSets;
import forge.quest.bazaar.QuestItemType; import forge.quest.bazaar.QuestItemType;
import forge.quest.bazaar.QuestPetController; import forge.quest.bazaar.QuestPetController;
import forge.quest.data.QuestAchievements; import forge.quest.data.QuestAchievements;
@@ -246,9 +247,9 @@ public class SSubmenuQuestUtil {
/** */ /** */
public static void showSetUnlock() { public static void showSetUnlock() {
final QuestController qData = Singletons.getModel().getQuest(); final QuestController qData = Singletons.getModel().getQuest();
CardEdition toUnlock = QuestUtil.unlockSet(qData, false, null); CardEdition toUnlock = QuestUtilUnlockSets.unlockSet(qData, false, null);
if (toUnlock != null) { if (toUnlock != null) {
QuestUtilUnlockSets.doUnlock(qData, toUnlock);
} }
} }

View File

@@ -49,7 +49,7 @@ public class QuestUtilUnlockSets {
List<Long> unlockPrices = new ArrayList<Long>(); List<Long> unlockPrices = new ArrayList<Long>();
for (int i = 0; i < choices.size(); i++) { for (int i = 0; i < choices.size(); i++) {
if (mapPrices.containsKey(choices.get(i).getName() + " Booster Pack")) { if (mapPrices.containsKey(choices.get(i).getName() + " Booster Pack")) {
long newPrice = (long) 35 * mapPrices.get(choices.get(i).getName() + " Booster Pack"); long newPrice = (long) 50 * mapPrices.get(choices.get(i).getName() + " Booster Pack");
if (newPrice < 10000) { newPrice = 10000; } if (newPrice < 10000) { newPrice = 10000; }
unlockPrices.add(newPrice); unlockPrices.add(newPrice);
} }