This commit is contained in:
Maxmtg
2013-05-22 04:04:02 +00:00
parent 3a2b9d17d9
commit 79b92d40dc
2 changed files with 4 additions and 9 deletions

View File

@@ -58,8 +58,7 @@ public class QuestEventChallenge extends QuestEvent {
private boolean repeatable = false; private boolean repeatable = false;
private boolean useBazaar = true; private boolean useBazaar = true;
private boolean forceAnte = false;
private Boolean forceAnte = null;
/** The wins reqd. */ /** The wins reqd. */
private int winsReqd = 20; private int winsReqd = 20;
@@ -290,14 +289,14 @@ public class QuestEventChallenge extends QuestEvent {
/** /**
* @return the forceAnte * @return the forceAnte
*/ */
public Boolean isForceAnte() { public boolean isForceAnte() {
return forceAnte; return forceAnte;
} }
/** /**
* @param forceAnte the forceAnte to set * @param forceAnte the forceAnte to set
*/ */
public void setForceAnte(Boolean forceAnte) { public void setForceAnte(boolean forceAnte) {
this.forceAnte = forceAnte; this.forceAnte = forceAnte;
} }

View File

@@ -45,11 +45,7 @@ public class QuestChallengeReader extends StorageReaderFolder<QuestEventChalleng
qc.setHumanLife(humanLife); qc.setHumanLife(humanLife);
} }
qc.setUseBazaar(sectionQuest.getBoolean("UseBazaar", qc.isUseBazaar())); qc.setUseBazaar(sectionQuest.getBoolean("UseBazaar", qc.isUseBazaar()));
qc.setForceAnte(sectionQuest.getBoolean("ForceAnte", false));
String force = sectionQuest.get("ForceAnte", null);
if (force != null) {
qc.setForceAnte(Boolean.valueOf(force));
}
String humanDeck = sectionQuest.get("HumanDeck", null); String humanDeck = sectionQuest.get("HumanDeck", null);
if (humanDeck != null) { if (humanDeck != null) {