mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
use unboxed types if possible
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user