renamed GAME
This commit is contained in:
parent
b4e8b4f1ac
commit
66f2a5df5e
@ -66,8 +66,8 @@ public class RewardManager
|
|||||||
|
|
||||||
public void addGame(DonationManager donationManager, InventoryManager inventoryManager, PetManager petManager, StatsManager statsManager)
|
public void addGame(DonationManager donationManager, InventoryManager inventoryManager, PetManager petManager, StatsManager statsManager)
|
||||||
{
|
{
|
||||||
addReward(new GemReward(donationManager, 100, 500, 100, RewardRarity.GAME));
|
addReward(new GemReward(donationManager, 100, 500, 100, RewardRarity.CARL_EXTRA));
|
||||||
addReward(new ExperienceReward(statsManager, 100, 5000, 100, RewardRarity.GAME));
|
addReward(new ExperienceReward(statsManager, 100, 5000, 100, RewardRarity.CARL_EXTRA));
|
||||||
}
|
}
|
||||||
|
|
||||||
public void addCommon(DonationManager donationManager, InventoryManager inventoryManager, PetManager petManager, double minValue, double maxValue)
|
public void addCommon(DonationManager donationManager, InventoryManager inventoryManager, PetManager petManager, double minValue, double maxValue)
|
||||||
|
@ -20,7 +20,7 @@ public enum RewardRarity
|
|||||||
|
|
||||||
OTHER("Other", cWhite, Material.STAINED_GLASS_PANE, (byte) 0),
|
OTHER("Other", cWhite, Material.STAINED_GLASS_PANE, (byte) 0),
|
||||||
COMMON("Common", cWhite, Material.STAINED_GLASS_PANE, (byte) 0),
|
COMMON("Common", cWhite, Material.STAINED_GLASS_PANE, (byte) 0),
|
||||||
GAME("Game", cYellow, Material.STAINED_GLASS_PANE, (byte) 4),
|
CARL_EXTRA("Game", cYellow, Material.STAINED_GLASS_PANE, (byte) 4),
|
||||||
UNCOMMON("Uncommon", cAqua, Material.STAINED_GLASS_PANE, (byte) 3),
|
UNCOMMON("Uncommon", cAqua, Material.STAINED_GLASS_PANE, (byte) 3),
|
||||||
RARE("Rare", cPurple, Material.STAINED_GLASS_PANE, (byte) 10),
|
RARE("Rare", cPurple, Material.STAINED_GLASS_PANE, (byte) 10),
|
||||||
LEGENDARY("Legendary", cGreen, Material.STAINED_GLASS_PANE, (byte) 5),
|
LEGENDARY("Legendary", cGreen, Material.STAINED_GLASS_PANE, (byte) 5),
|
||||||
|
@ -3,7 +3,7 @@ package mineplex.core.reward;
|
|||||||
public enum RewardType
|
public enum RewardType
|
||||||
{
|
{
|
||||||
//% Chances Mythic Legend Rare Uncommon
|
//% Chances Mythic Legend Rare Uncommon
|
||||||
GameLoot( 0.000001, 0.00001, 0.0001, 3, 10),
|
GameLoot( 0.000001, 0.00001, 0.0001, 3, 0),
|
||||||
|
|
||||||
OldChest( 0, 0.05, 0.4, 5, 0),
|
OldChest( 0, 0.05, 0.4, 5, 0),
|
||||||
AncientChest( 0, 1, 4, 25, 0),
|
AncientChest( 0, 1, 4, 25, 0),
|
||||||
@ -37,7 +37,7 @@ public enum RewardType
|
|||||||
else if (rand <= _legendaryChance) rarity = RewardRarity.LEGENDARY;
|
else if (rand <= _legendaryChance) rarity = RewardRarity.LEGENDARY;
|
||||||
else if (rand <= _rareChance) rarity = RewardRarity.RARE;
|
else if (rand <= _rareChance) rarity = RewardRarity.RARE;
|
||||||
else if (rand <= _uncommonChance || requiresUncommon) rarity = RewardRarity.UNCOMMON;
|
else if (rand <= _uncommonChance || requiresUncommon) rarity = RewardRarity.UNCOMMON;
|
||||||
else if (rand <= _gameChance) rarity = RewardRarity.GAME;
|
else if (rand <= _gameChance) rarity = RewardRarity.CARL_EXTRA;
|
||||||
|
|
||||||
return rarity;
|
return rarity;
|
||||||
}
|
}
|
||||||
|
@ -35,13 +35,13 @@ public class ExperienceReward extends Reward
|
|||||||
|
|
||||||
_statsManager.incrementStat(player, "Global.ExpEarned", experience);
|
_statsManager.incrementStat(player, "Global.ExpEarned", experience);
|
||||||
|
|
||||||
return new RewardData(getRarity().getColor() + experience + " Experience", new ItemStack(Material.EXP_BOTTLE), RewardRarity.GAME);
|
return new RewardData(getRarity().getColor() + experience + " Experience", new ItemStack(Material.EXP_BOTTLE), RewardRarity.CARL_EXTRA);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RewardData getFakeRewardData(Player player)
|
public RewardData getFakeRewardData(Player player)
|
||||||
{
|
{
|
||||||
return new RewardData(getRarity().getColor() + "Experience", new ItemStack(Material.EXP_BOTTLE), RewardRarity.GAME);
|
return new RewardData(getRarity().getColor() + "Experience", new ItemStack(Material.EXP_BOTTLE), RewardRarity.CARL_EXTRA);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user