Renamed a GameFormatQuest method to something more descriptive (to avoid confusion with a more general method).

This commit is contained in:
RumbleBBU
2012-10-23 05:17:23 +00:00
parent 8b0f167182
commit f3da9bbf2c
2 changed files with 2 additions and 2 deletions

View File

@@ -496,7 +496,7 @@ public class QuestWinLose extends ControlWinLose {
if (unlockedSet != null) { if (unlockedSet != null) {
qData.getFormat().addSet(unlockedSet.getCode()); qData.getFormat().unlockSet(unlockedSet.getCode());
if (Singletons.getModel().getTournamentPacks().contains(unlockedSet.getCode())) { if (Singletons.getModel().getTournamentPacks().contains(unlockedSet.getCode())) {
final List<CardPrinted> cardsWon = (new UnOpenedProduct(Singletons.getModel().getTournamentPacks().get(unlockedSet.getCode()))).open(); final List<CardPrinted> cardsWon = (new UnOpenedProduct(Singletons.getModel().getTournamentPacks().get(unlockedSet.getCode()))).open();

View File

@@ -210,7 +210,7 @@ public final class GameFormatQuest {
* *
* @param setCode String, set code. * @param setCode String, set code.
*/ */
public void addSet(final String setCode) { public void unlockSet(final String setCode) {
if (this.allowedSetCodes == null) { if (this.allowedSetCodes == null) {
this.allowedSetCodes = new ArrayList<String>(); // this should never happen. this.allowedSetCodes = new ArrayList<String>(); // this should never happen.
} else if (this.allowedSetCodes.isEmpty()) { } else if (this.allowedSetCodes.isEmpty()) {