Add coin party bomb to rare rewards, fix reward values from last commit

This commit is contained in:
Shaun Bennett 2014-09-18 00:46:33 -05:00
parent 6c4479298d
commit 87bd5d8f7f
1 changed files with 6 additions and 2 deletions

View File

@ -175,6 +175,10 @@ public class RewardManager
new ItemStack(Material.ENDER_PEARL), RewardRarity.RARE, 33)); new ItemStack(Material.ENDER_PEARL), RewardRarity.RARE, 33));
addReward(new UnknownPackageReward(donationManager, "Bat Morph", "Bat Morph", addReward(new UnknownPackageReward(donationManager, "Bat Morph", "Bat Morph",
new ItemStack(Material.SKULL_ITEM, 1, (short) 0, (byte) 1), RewardRarity.RARE, 25)); new ItemStack(Material.SKULL_ITEM, 1, (short) 0, (byte) 1), RewardRarity.RARE, 25));
// Gadgets
addReward(new InventoryReward(inventoryManager, "Coin Party Bomb", "Coin Party Bomb", 1, 1,
new ItemStack(Material.getMaterial(175)), RewardRarity.RARE, 100));
} }
public void addLegendary(DonationManager donationManager, InventoryManager inventoryManager, double minValue, double maxValue) public void addLegendary(DonationManager donationManager, InventoryManager inventoryManager, double minValue, double maxValue)
@ -261,12 +265,12 @@ public class RewardManager
double rand = _random.nextDouble(); double rand = _random.nextDouble();
RewardRarity rarity; RewardRarity rarity;
if (isChestOpening ? rand <= 0.91 : rand <= 0.0001) if (isChestOpening ? rand <= 0.01 : rand <= 0.0001)
{ {
// 1% or 0.01% // 1% or 0.01%
rarity = RewardRarity.LEGENDARY; rarity = RewardRarity.LEGENDARY;
} }
else if (isChestOpening ? rand <= 0.95 : rand <= 0.001) else if (isChestOpening ? rand <= 0.05 : rand <= 0.001)
{ {
// 4% or 0.09% // 4% or 0.09%
rarity = RewardRarity.RARE; rarity = RewardRarity.RARE;