Merge pull request #1417 from rikimbo/fix_adventure_card_reward_bonus

Adventure: Fix "Card Reward Bonus" to properly max at 3
This commit is contained in:
Anthony Calosa
2022-08-31 05:46:43 +08:00
committed by GitHub

View File

@@ -539,7 +539,7 @@ public class AdventurePlayer implements Serializable, SaveFileContent {
if(blessing != null) { if(blessing != null) {
if(blessing.cardRewardBonus > 0) result += blessing.cardRewardBonus; if(blessing.cardRewardBonus > 0) result += blessing.cardRewardBonus;
} }
return Math.max(result, 3); return Math.min(result, 3);
} }
public DifficultyData getDifficulty() { public DifficultyData getDifficulty() {