mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
Updated codes
This commit is contained in:
@@ -294,11 +294,7 @@ public class QuestEventDraft implements IQuestEvent {
|
||||
int value;
|
||||
final String boosterName = FModel.getMagicDb().getEditions().get(boosterSet).getName() + " Booster Pack";
|
||||
|
||||
if (MAP_PRICES.containsKey(boosterName)) {
|
||||
value = MAP_PRICES.get(boosterName);
|
||||
} else {
|
||||
value = 395;
|
||||
}
|
||||
value = MAP_PRICES.getOrDefault(boosterName, 395);
|
||||
|
||||
boosterPrices += value;
|
||||
|
||||
@@ -518,11 +514,7 @@ public class QuestEventDraft implements IQuestEvent {
|
||||
|
||||
final String boosterName = booster.getName();
|
||||
|
||||
if (MAP_PRICES.containsKey(boosterName)) {
|
||||
value = MAP_PRICES.get(boosterName);
|
||||
} else {
|
||||
value = 395;
|
||||
}
|
||||
value = MAP_PRICES.getOrDefault(boosterName, 395);
|
||||
|
||||
return value;
|
||||
|
||||
@@ -949,11 +941,7 @@ public class QuestEventDraft implements IQuestEvent {
|
||||
int value;
|
||||
final String boosterName = FModel.getMagicDb().getEditions().get(boosterSet).getName() + " Booster Pack";
|
||||
|
||||
if (MAP_PRICES.containsKey(boosterName)) {
|
||||
value = MAP_PRICES.get(boosterName);
|
||||
} else {
|
||||
value = 395;
|
||||
}
|
||||
value = MAP_PRICES.getOrDefault(boosterName, 395);
|
||||
|
||||
entryFee += value;
|
||||
|
||||
|
||||
@@ -89,6 +89,10 @@ public class QuestPetStorage {
|
||||
*/
|
||||
private void addToMap(final QuestPetController petCtrl) {
|
||||
final int iSlot = petCtrl.getSlot();
|
||||
/*
|
||||
* Refactoring this to List<QuestPetController> list = this.petsBySlot.computeIfAbsent(Integer.valueOf(iSlot), k -> new ArrayList<QuestPetController>());
|
||||
* will cause Android not to compile
|
||||
* */
|
||||
List<QuestPetController> list = this.petsBySlot.get(Integer.valueOf(iSlot));
|
||||
if (null == list) {
|
||||
list = new ArrayList<QuestPetController>();
|
||||
|
||||
Reference in New Issue
Block a user