From 66419f622bc78b08dfedf99c2affa5737442290b Mon Sep 17 00:00:00 2001 From: Agetian Date: Sat, 1 Jul 2017 11:07:55 +0000 Subject: [PATCH] - A couple code style changes. --- forge-gui/src/main/java/forge/quest/QuestUtilUnlockSets.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/forge-gui/src/main/java/forge/quest/QuestUtilUnlockSets.java b/forge-gui/src/main/java/forge/quest/QuestUtilUnlockSets.java index 6e127b85a3d..7cfb8a36df9 100644 --- a/forge-gui/src/main/java/forge/quest/QuestUtilUnlockSets.java +++ b/forge-gui/src/main/java/forge/quest/QuestUtilUnlockSets.java @@ -68,7 +68,7 @@ public class QuestUtilUnlockSets { final Map mapPrices = prices.getPriceList(); final List> setPrices = new ArrayList>(); - Double multiplier = (double) 1; + Double multiplier = 1d; int j = 0; for (CardEdition ed : getUnlockableEditions(qData)) { j++; @@ -76,7 +76,7 @@ public class QuestUtilUnlockSets { multiplier = multiplier * Double.parseDouble(FModel.getQuestPreferences().getPref(QPref.UNLOCK_DISTANCE_MULTIPLIER)); // prevent overflow if (multiplier >= 500) { - multiplier = (double) 500; + multiplier = 500d; } } int price = UNLOCK_COST;