From 396d701e070cf34159346f7f9e43fae82d5d5e7a Mon Sep 17 00:00:00 2001 From: Jeremy Diamond Date: Sun, 6 Apr 2014 15:19:12 -0700 Subject: [PATCH] WHY WON'T SENPAI NOTICE ME?! Wand mechanic changed to charge all five aspects at once. Charge rate slightly decreased. --- .../spiteful/forbidden/items/wands/YandereWandUpdate.java | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java b/src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java index 1ac7cac..7e05f73 100644 --- a/src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java +++ b/src/com/spiteful/forbidden/items/wands/YandereWandUpdate.java @@ -17,7 +17,7 @@ public class YandereWandUpdate implements IWandRodOnUpdate { public void onUpdate(ItemStack itemstack, EntityPlayer player) { - if(Compat.botan && player.ticksExisted % 30 == 0) + if(Compat.botan && player.ticksExisted % 40 == 0) { try { @@ -27,16 +27,14 @@ public class YandereWandUpdate implements IWandRodOnUpdate { else cost = 800; - ArrayList unfilled = new ArrayList(); for(int x = 0;x < primals.length;x++) { if(((ItemWandCasting)itemstack.getItem()).getVis(itemstack, primals[x]) < ((ItemWandCasting)itemstack.getItem()).getMaxVis(itemstack)) { - unfilled.add(primals[x]); + if(ManaItemHandler.requestManaExact(itemstack, player, cost, true)) + ((ItemWandCasting)itemstack.getItem()).addVis(itemstack, primals[x], 1, true); } } - if(unfilled.size() > 0 && ManaItemHandler.requestManaExact(itemstack, player, cost, true)) - ((ItemWandCasting)itemstack.getItem()).addVis(itemstack, (Aspect)(unfilled.get(player.worldObj.rand.nextInt(unfilled.size()))), 1, true); } catch(Throwable e)