mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- A couple code style changes.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user