mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
Revert Android 8 codes to support older Android phones.
Hope I didn't miss any. :) (tested with Android Marshmallow phone with 2gb RAM and mediatek cpu)
This commit is contained in:
@@ -294,7 +294,11 @@ public class QuestEventDraft implements IQuestEvent {
|
||||
int value;
|
||||
final String boosterName = FModel.getMagicDb().getEditions().get(boosterSet).getName() + " Booster Pack";
|
||||
|
||||
value = MAP_PRICES.getOrDefault(boosterName, 395);
|
||||
if (MAP_PRICES.containsKey(boosterName)) {
|
||||
value = MAP_PRICES.get(boosterName);
|
||||
} else {
|
||||
value = 395;
|
||||
}
|
||||
|
||||
boosterPrices += value;
|
||||
|
||||
@@ -514,7 +518,11 @@ public class QuestEventDraft implements IQuestEvent {
|
||||
|
||||
final String boosterName = booster.getName();
|
||||
|
||||
value = MAP_PRICES.getOrDefault(boosterName, 395);
|
||||
if (MAP_PRICES.containsKey(boosterName)) {
|
||||
value = MAP_PRICES.get(boosterName);
|
||||
} else {
|
||||
value = 395;
|
||||
}
|
||||
|
||||
return value;
|
||||
|
||||
@@ -941,7 +949,11 @@ public class QuestEventDraft implements IQuestEvent {
|
||||
int value;
|
||||
final String boosterName = FModel.getMagicDb().getEditions().get(boosterSet).getName() + " Booster Pack";
|
||||
|
||||
value = MAP_PRICES.getOrDefault(boosterName, 395);
|
||||
if (MAP_PRICES.containsKey(boosterName)) {
|
||||
value = MAP_PRICES.get(boosterName);
|
||||
} else {
|
||||
value = 395;
|
||||
}
|
||||
|
||||
entryFee += value;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user