use unboxed types if possible

This commit is contained in:
Maxmtg
2013-05-22 04:14:38 +00:00
parent a500baf23e
commit 7cd1e65ecb

View File

@@ -403,18 +403,19 @@ public class SSubmenuQuestUtil {
int extraLifeHuman = 0; int extraLifeHuman = 0;
Integer lifeHuman = null; Integer lifeHuman = null;
boolean useBazaar = true; boolean useBazaar = true;
Boolean forceAnte = false; boolean forceAnte = false;
int lifeAI = 20; int lifeAI = 20;
if (event instanceof QuestEventChallenge) { if (event instanceof QuestEventChallenge) {
lifeAI = ((QuestEventChallenge) event).getAILife(); QuestEventChallenge qc = ((QuestEventChallenge) event);
lifeHuman = ((QuestEventChallenge) event).getHumanLife(); lifeAI = qc.getAILife();
lifeHuman = qc.getHumanLife();
if (qData.getAssets().hasItem(QuestItemType.ZEPPELIN)) { if (qData.getAssets().hasItem(QuestItemType.ZEPPELIN)) {
extraLifeHuman = 3; extraLifeHuman = 3;
} }
useBazaar = ((QuestEventChallenge) event).isUseBazaar(); useBazaar = qc.isUseBazaar();
forceAnte = ((QuestEventChallenge) event).isForceAnte(); forceAnte = qc.isForceAnte();
} }
PlayerStartConditions humanStart = new PlayerStartConditions(deck); PlayerStartConditions humanStart = new PlayerStartConditions(deck);