mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
Fixed bug where first quest game was always starting with 20 life.
This commit is contained in:
@@ -212,26 +212,24 @@ public class SubmenuQuestUtil {
|
||||
|
||||
if (qData.getMode() == QuestMode.Fantasy) {
|
||||
int lifeAI = 20;
|
||||
int lifeHuman = 20;
|
||||
|
||||
if (selectedOpponent.getEvent().getEventType() == CHALLENGE) {
|
||||
int extraLife = 0;
|
||||
lifeAI = ((QuestChallenge) event).getAILife();
|
||||
}
|
||||
|
||||
int baseLifeHuman = qData.getAssets().getLife(qData.getMode());
|
||||
int extraLife = 0;
|
||||
// If zeppelin has been purchased, gear will be at level 2.
|
||||
if (qData.getAssets().hasItem(QuestItemType.ZEPPELIN)
|
||||
&& VSubmenuChallenges.SINGLETON_INSTANCE.getCbZep().isSelected()) {
|
||||
extraLife = 3;
|
||||
}
|
||||
lifeAI = ((QuestChallenge) event).getAILife();
|
||||
lifeHuman = qData.getAssets().getLife(qData.getMode()) + extraLife;
|
||||
}
|
||||
|
||||
GameNew.newGame(
|
||||
Constant.Runtime.HUMAN_DECK[0],
|
||||
Constant.Runtime.COMPUTER_DECK[0],
|
||||
QuestUtil.getHumanStartingCards(qData.getAssets(), event),
|
||||
QuestUtil.getComputerStartingCards(event),
|
||||
lifeHuman,
|
||||
baseLifeHuman + extraLife,
|
||||
lifeAI,
|
||||
event.getIconFilename());
|
||||
} // End isFantasy
|
||||
|
||||
Reference in New Issue
Block a user