mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
Makes the maximal amount of bonus for life total difference optional
This commit is contained in:
@@ -322,7 +322,7 @@ public class QuestWinLoseController {
|
||||
}
|
||||
|
||||
if (game.getLifeDelta() >= 50) {
|
||||
lifeDifferenceCredits += Math.max(Math.min((game.getLifeDelta() - 46) / 4, 750), 0);
|
||||
lifeDifferenceCredits += Math.max(Math.min((game.getLifeDelta() - 46) / 4, FModel.getQuestPreferences().getPrefInt(QPref.REWARDS_HEALTH_DIFF)), 0);
|
||||
}
|
||||
|
||||
} // End for(game)
|
||||
|
||||
@@ -61,6 +61,9 @@ public class QuestPreferences extends PreferencesStore<QuestPreferences.QPref> i
|
||||
REWARDS_MILLED("40"),
|
||||
REWARDS_ALTERNATIVE("100"),
|
||||
|
||||
// Max Bonus for health difference
|
||||
REWARDS_HEALTH_DIFF("750"),
|
||||
|
||||
// If you Mulligan to 0 to start a game
|
||||
REWARDS_MULLIGAN0("500"),
|
||||
|
||||
@@ -316,6 +319,7 @@ public class QuestPreferences extends PreferencesStore<QuestPreferences.QPref> i
|
||||
case REWARDS_ALTERNATIVE:
|
||||
case REWARDS_TURN5:
|
||||
case REWARDS_TURN1:
|
||||
case REWARDS_HEALTH_DIFF:
|
||||
case SHOP_MIN_PACKS:
|
||||
case SHOP_STARTING_PACKS:
|
||||
case SHOP_SINGLES_COMMON:
|
||||
|
||||
Reference in New Issue
Block a user