From 94090c943498916cee0c15dc9f209ef2f55b9d72 Mon Sep 17 00:00:00 2001 From: Shaun Bennett Date: Fri, 27 Nov 2015 01:24:03 -0500 Subject: [PATCH] adjust gold drops --- .../mineplex/game/clans/economy/GoldManager.java | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java index be0c42247..1a5398192 100644 --- a/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java +++ b/Plugins/Mineplex.Game.Clans/src/mineplex/game/clans/economy/GoldManager.java @@ -235,14 +235,14 @@ public class GoldManager extends MiniPlugin public void dropGold(Location location, int amount, double velMult) { - int count = amount / 700; - int extraGold = amount % 700; + int count = amount / 1000; + int extraGold = amount % 1000; for (int i = 0; i < count; i++) { double x = Math.random() * 2 * Math.PI; Vector velocity = new Vector(Math.sin(x), 0, Math.cos(x)); - dropGold(location, 1000, velocity, velMult); + dropGold(location, 1000, velocity, velMult, "" + i); } // Drop Extra @@ -250,16 +250,17 @@ public class GoldManager extends MiniPlugin { double x = Math.random() * 2 * Math.PI; Vector velocity = new Vector(Math.sin(x), 0, Math.cos(x)); - dropGold(location, extraGold, velocity, velMult); + dropGold(location, extraGold, velocity, velMult, "extra"); } } - private void dropGold(Location location, int amount, Vector velocity, double velMult) + private void dropGold(Location location, int amount, Vector velocity, double velMult, String name) { Item item = location.getWorld().dropItem(location, new ItemStack(Material.GOLD_NUGGET)); + item.setCustomName(name); item.setPickupDelay(40); item.setMetadata(META_STRING, new FixedMetadataValue(getPlugin(), amount)); - + _itemSet.add(item); // Velocity