dodgechance=addMultiplicativeValue(dodgechance,(93.182445*pd.velocity)*(0.05+(0.01*ItemSet.TotalBaseAmountBasedOnSetBonusCount(GenericFunctions.getBaubles(p),p,ItemSet.GLADOMAIN,7,4))));//For every 1m, give 5%.
}
@ -1861,15 +1865,12 @@ public class CustomDamage {
ERUPTION("Eruption","Sneak while Left-clicking a mob to damage mobs for [ERUPTIONVAL] damage and knock them up. The eruption also destroys the ground beneath you.",newdouble[]{3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0,3.0},
EARTHWAVE("Earth Wave","While in mid-air, right-click to instantly slam into the ground and launch soft blocks. This attack ignores fall damage. The larger the fall, the larger the wave.\n\nDeals [EARTHWAVEVAL] damage to every enemy hit by the wave. Deals double damage and knocks up on soft blocks.",newdouble[]{2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0,2.0},
BREAKDOWN("Break Down",ChatColor.GRAY+"[Unimplemented] Breaks down armor on mobs. Each hit has a [VAL]% chance to remove a piece of armor from a mob.",newdouble[]{3,3,3,3,3,3,3,3,3,3},
/*BREAKDOWN("Break Down",ChatColor.GRAY+"[Unimplemented] Breaks down armor on mobs. Each hit has a [VAL]% chance to remove a piece of armor from a mob.",newdouble[]{3,3,3,3,3,3,3,3,3,3},
BUTCHERY("Butchery",ChatColor.GRAY+"[Unimplemented] Broken down armor have a [VAL]% chance to drop onto the ground.",newdouble[]{10,10,10,10,10,10,10,10,10,10},
HIGHDIVE("High Dive","Sneak while pressing the drop key to become rooted for 3 seconds, storing [VAL]% damage taken and gaining 100% knockback resistance. Then leap up high into the air and slam the ground. High Dive increases the base damage of Barbarian's Leaping Strike by the amount of damage stored."+LevelCost(3),
AOE("Area of Effect","Deals damage to targets up to [AOEVAL]m from the main target hit.",newdouble[]{0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1,0.1},
p.sendMessage(ChatColor.YELLOW+"Your "+ChatColor.YELLOW+((bauble.hasItemMeta()&&bauble.getItemMeta().hasDisplayName())?bauble.getItemMeta().getDisplayName():GenericFunctions.UserFriendlyMaterialName(bauble))+ChatColor.YELLOW+" reduced to "+ChatColor.GREEN+(breaks-1)+" "+ChatColor.YELLOW+" breaks remaining.");
}else{
p.sendMessage(ChatColor.GOLD+""+ChatColor.BOLD+"Unlucky! "+ChatColor.RESET+ChatColor.DARK_RED+"Your "+ChatColor.YELLOW+((bauble.hasItemMeta()&&bauble.getItemMeta().hasDisplayName())?bauble.getItemMeta().getDisplayName():GenericFunctions.UserFriendlyMaterialName(bauble))+ChatColor.DARK_RED+" has broken!");
inv.setItem(i,newItemStack(Material.AIR));
@ -4486,7 +4494,7 @@ public class GenericFunctions {
if((((p.getEquipment().getItemInMainHand()!=null&&(p.getEquipment().getItemInMainHand().getType()==Material.BOW||ArrowQuiver.isValidQuiver(p.getEquipment().getItemInMainHand()))&&(p.getInventory().getExtraContents()[0]==null||p.getInventory().getExtraContents()[0].getType()==Material.AIR))||//Satisfy just a bow/quiver in main hand.
(p.getEquipment().getItemInMainHand()!=null&&(p.getEquipment().getItemInMainHand().getType()==Material.BOW||ArrowQuiver.isValidQuiver(p.getEquipment().getItemInMainHand()))&&p.getInventory().getExtraContents()[0]!=null&&!GenericFunctions.isEquip(p.getInventory().getExtraContents()[0]))||/*Satisfy a bow/quiver in main hand and no shield in off-hand.*/
(p.getEquipment().getItemInMainHand()!=null&&!GenericFunctions.isEquip(p.getEquipment().getItemInMainHand())&&p.getInventory().getExtraContents()[0]!=null&&(p.getInventory().getExtraContents()[0].getType()==Material.BOW||ArrowQuiver.isValidQuiver(p.getInventory().getExtraContents()[0])))||/*Satisfy a bow/quiver in off-hand and no shield in main hand.*/
(p.getEquipment().getItemInMainHand()!=null&&(p.getEquipment().getItemInMainHand().getType()==Material.BOW||ArrowQuiver.isValidQuiver(p.getEquipment().getItemInMainHand()))&&p.getInventory().getExtraContents()[0]!=null&&!(GenericFunctions.isWeapon(p.getInventory().getExtraContents()[0]))&&!(GenericFunctions.isArmor(p.getInventory().getExtraContents()[0])))||/*Satisfy a bow/quiver in main hand and no shield in off-hand.*/
(p.getEquipment().getItemInMainHand()!=null&&!GenericFunctions.isWeapon(p.getEquipment().getItemInMainHand())&&!GenericFunctions.isArmor(p.getEquipment().getItemInMainHand())&&p.getInventory().getExtraContents()[0]!=null&&(p.getInventory().getExtraContents()[0].getType()==Material.BOW||ArrowQuiver.isValidQuiver(p.getInventory().getExtraContents()[0])))||/*Satisfy a bow/quiver in off-hand and no shield in main hand.*/
((p.getEquipment().getItemInMainHand()==null||p.getEquipment().getItemInMainHand().getType()==Material.AIR)&&p.getInventory().getExtraContents()[0]!=null&&(p.getInventory().getExtraContents()[0].getType()==Material.BOW||ArrowQuiver.isValidQuiver(p.getInventory().getExtraContents()[0]))))/*Satisfy just a bow/quiver in off-hand.*/&&
Chickentemporarychicken=(Chicken)p.getWorld().spawnEntity(p.getLocation().add(0,1000000,0),EntityType.CHICKEN);//Why are you so cruel to the chicken sig.
//aPlugin.DiscordMessageSender.sendPM("A storm"+((Bukkit.getWorld("world").isThundering())?" (With Thunder)":"")+" is now occuring on the server. (Day "+(int)(TwosideKeeper.getServerTickTime()/48000)+")", workable.getString("weatherwatch_user"));
aPlugin.API.discordSendDM(workable.getString("weatherwatch_user"),"A storm"+((Bukkit.getWorld("world").isThundering())?" (With Thunder)":"")+" is now occuring on the server. (Day "+(int)(TwosideKeeper.getServerTickTime()/48000)+")");
aPlugin.API.discordSendOnlineDM(workable.getString("weatherwatch_user"),"A storm"+((Bukkit.getWorld("world").isThundering())?" (With Thunder)":"")+" is now occuring on the server. (Day "+(int)(TwosideKeeper.getServerTickTime()/48000)+")");