Removed gingerbread chest
This commit is contained in:
parent
cdd1e63989
commit
76b356f73c
@ -137,6 +137,13 @@ public class TreasurePage extends ShopPageBase<TreasureManager, TreasureShop>
|
|||||||
int gingerbreadCount = _inventoryManager.Get(getPlayer()).getItemCount(TreasureType.GINGERBREAD.getItemName());
|
int gingerbreadCount = _inventoryManager.Get(getPlayer()).getItemCount(TreasureType.GINGERBREAD.getItemName());
|
||||||
int minestrikeCount = _inventoryManager.Get(getPlayer()).getItemCount(TreasureType.MINESTRIKE.getItemName());
|
int minestrikeCount = _inventoryManager.Get(getPlayer()).getItemCount(TreasureType.MINESTRIKE.getItemName());
|
||||||
|
|
||||||
|
boolean availableChristmas = false;
|
||||||
|
boolean availableFreedom = false;
|
||||||
|
boolean availableHaunted = false;
|
||||||
|
boolean availableTrick = false;
|
||||||
|
boolean availableThank = false;
|
||||||
|
boolean availableGingerbread = false;
|
||||||
|
|
||||||
List<String> shardLore = new ArrayList<>();
|
List<String> shardLore = new ArrayList<>();
|
||||||
shardLore.add(" ");
|
shardLore.add(" ");
|
||||||
shardLore.add(C.cGray + "This seems like it might come in");
|
shardLore.add(C.cGray + "This seems like it might come in");
|
||||||
@ -296,8 +303,7 @@ public class TreasurePage extends ShopPageBase<TreasureManager, TreasureShop>
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
boolean available = new File("../../update/files/EnableTrickOrTreat.dat").exists();
|
if (!availableTrick)
|
||||||
if (!available)
|
|
||||||
{
|
{
|
||||||
trickLore.add(C.cRed + "This item is no longer available!");
|
trickLore.add(C.cRed + "This item is no longer available!");
|
||||||
}
|
}
|
||||||
@ -323,8 +329,7 @@ public class TreasurePage extends ShopPageBase<TreasureManager, TreasureShop>
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
boolean available = new File("../../update/files/EnableThankful.dat").exists();
|
if (!availableThank)
|
||||||
if (!available)
|
|
||||||
{
|
{
|
||||||
thankLore.add(C.cRed + "This item is no longer available!");
|
thankLore.add(C.cRed + "This item is no longer available!");
|
||||||
}
|
}
|
||||||
@ -351,9 +356,7 @@ public class TreasurePage extends ShopPageBase<TreasureManager, TreasureShop>
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
gingerbreadLore.add(ChatColor.RESET + "Click to craft for " + C.cAqua + "20000 Treasure Shards");
|
gingerbreadLore.add(C.cRed + "This item is no longer available!");
|
||||||
gingerbreadLore.add(" ");
|
|
||||||
gingerbreadLore.add(ChatColor.RESET + "or Purchase at: " + C.cYellow + "www.mineplex.com/shop");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
List<String> minestrikeLore = Lists.newArrayList();
|
List<String> minestrikeLore = Lists.newArrayList();
|
||||||
@ -424,13 +427,37 @@ public class TreasurePage extends ShopPageBase<TreasureManager, TreasureShop>
|
|||||||
_normalTreasures.add(omegaTreasureItem);
|
_normalTreasures.add(omegaTreasureItem);
|
||||||
_normalTreasures.add(minestrikeTreasureItem);
|
_normalTreasures.add(minestrikeTreasureItem);
|
||||||
|
|
||||||
_seasonalTreasures.add(winterTreasureItem);
|
|
||||||
_seasonalTreasures.add(freedomTreasureItem);
|
|
||||||
_seasonalTreasures.add(hauntedTreasureItem);
|
|
||||||
_seasonalTreasures.add(trickTreasureItem);
|
|
||||||
_seasonalTreasures.add(thankTreasureItem);
|
|
||||||
|
|
||||||
_specialTreasures.add(gingerbreadTreasureItem);
|
|
||||||
|
if (availableChristmas)
|
||||||
|
_specialTreasures.add(winterTreasureItem);
|
||||||
|
else
|
||||||
|
_seasonalTreasures.add(winterTreasureItem);
|
||||||
|
|
||||||
|
if (availableFreedom)
|
||||||
|
_specialTreasures.add(freedomTreasureItem);
|
||||||
|
else
|
||||||
|
_seasonalTreasures.add(freedomTreasureItem);
|
||||||
|
|
||||||
|
if (availableHaunted)
|
||||||
|
_specialTreasures.add(hauntedTreasureItem);
|
||||||
|
else
|
||||||
|
_seasonalTreasures.add(hauntedTreasureItem);
|
||||||
|
|
||||||
|
if (availableTrick)
|
||||||
|
_specialTreasures.add(trickTreasureItem);
|
||||||
|
else
|
||||||
|
_seasonalTreasures.add(trickTreasureItem);
|
||||||
|
|
||||||
|
if (availableThank)
|
||||||
|
_specialTreasures.add(thankTreasureItem);
|
||||||
|
else
|
||||||
|
_seasonalTreasures.add(thankTreasureItem);
|
||||||
|
|
||||||
|
if (availableGingerbread)
|
||||||
|
_specialTreasures.add(gingerbreadTreasureItem);
|
||||||
|
else
|
||||||
|
_seasonalTreasures.add(gingerbreadTreasureItem);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void buildFirstPage()
|
private void buildFirstPage()
|
||||||
|
Loading…
Reference in New Issue
Block a user