Add coin party bomb to rare rewards, fix reward values from last commit
This commit is contained in:
parent
6c4479298d
commit
87bd5d8f7f
@ -175,6 +175,10 @@ public class RewardManager
|
||||
new ItemStack(Material.ENDER_PEARL), RewardRarity.RARE, 33));
|
||||
addReward(new UnknownPackageReward(donationManager, "Bat Morph", "Bat Morph",
|
||||
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)
|
||||
@ -261,12 +265,12 @@ public class RewardManager
|
||||
double rand = _random.nextDouble();
|
||||
RewardRarity rarity;
|
||||
|
||||
if (isChestOpening ? rand <= 0.91 : rand <= 0.0001)
|
||||
if (isChestOpening ? rand <= 0.01 : rand <= 0.0001)
|
||||
{
|
||||
// 1% or 0.01%
|
||||
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%
|
||||
rarity = RewardRarity.RARE;
|
||||
|
Loading…
Reference in New Issue
Block a user