- A couple code style changes.

This commit is contained in:
Agetian
2017-07-01 11:07:55 +00:00
parent 36c34e3005
commit 66419f622b

View File

@@ -68,7 +68,7 @@ public class QuestUtilUnlockSets {
final Map<String, Integer> mapPrices = prices.getPriceList(); final Map<String, Integer> mapPrices = prices.getPriceList();
final List<ImmutablePair<CardEdition, Integer>> setPrices = new ArrayList<ImmutablePair<CardEdition, Integer>>(); final List<ImmutablePair<CardEdition, Integer>> setPrices = new ArrayList<ImmutablePair<CardEdition, Integer>>();
Double multiplier = (double) 1; Double multiplier = 1d;
int j = 0; int j = 0;
for (CardEdition ed : getUnlockableEditions(qData)) { for (CardEdition ed : getUnlockableEditions(qData)) {
j++; j++;
@@ -76,7 +76,7 @@ public class QuestUtilUnlockSets {
multiplier = multiplier * Double.parseDouble(FModel.getQuestPreferences().getPref(QPref.UNLOCK_DISTANCE_MULTIPLIER)); multiplier = multiplier * Double.parseDouble(FModel.getQuestPreferences().getPref(QPref.UNLOCK_DISTANCE_MULTIPLIER));
// prevent overflow // prevent overflow
if (multiplier >= 500) { if (multiplier >= 500) {
multiplier = (double) 500; multiplier = 500d;
} }
} }
int price = UNLOCK_COST; int price = UNLOCK_COST;