From 87bd5d8f7fc8a28f4a2d0f210f5fad5d1f3322b9 Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Thu, 18 Sep 2014 00:46:33 -0500 Subject: [PATCH] Add coin party bomb to rare rewards, fix reward values from last commit --- .../src/mineplex/core/reward/RewardManager.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Plugins/Mineplex.Core/src/mineplex/core/reward/RewardManager.java b/Plugins/Mineplex.Core/src/mineplex/core/reward/RewardManager.java index 469e2b56c..8fa841be2 100644 --- a/Plugins/Mineplex.Core/src/mineplex/core/reward/RewardManager.java +++ b/Plugins/Mineplex.Core/src/mineplex/core/reward/RewardManager.java @@ -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;