Undefeated doesn't mean Alternate Win
r19689
Max why did you revert my change in QuestWinLose. The quest preference that says "Alternative" (as in Alternative Win) is the preference should be used for a SpellEffect that wins a game (or cause an opponent to lose a game). The quest preference "Undefeated" means exactly what it says that the Player did not have any defeats when they won the match. Why do you think otherwise?
Here is the code that awards Undefeated bonus:
Max why did you revert my change in QuestWinLose. The quest preference that says "Alternative" (as in Alternative Win) is the preference should be used for a SpellEffect that wins a game (or cause an opponent to lose a game). The quest preference "Undefeated" means exactly what it says that the Player did not have any defeats when they won the match. Why do you think otherwise?
Here is the code that awards Undefeated bonus:
- Code: Select all
// Undefeated bonus
if (hasNeverLost) {
credUndefeated += Singletons.getModel().getQuestPreferences().getPreferenceInt(QPref.REWARDS_UNDEFEATED);
final int reward = Singletons.getModel().getQuestPreferences().getPreferenceInt(QPref.REWARDS_UNDEFEATED);
sb.append(String.format("You have not lost once! " + "Bonus: %d credits.<br>", reward));
}