Permalink
Browse files

Fixed formatting

  • Loading branch information...
TfT-02 committed Dec 30, 2012
1 parent 6cf6e8a commit 2968803f29ccf57d3fbbecdacdb2832dbff409ca
Showing with 3 additions and 2 deletions.
  1. +1 −0 Changelog.txt
  2. +2 −2 src/main/java/com/gmail/nossr50/skills/combat/Axes.java
View
@@ -10,6 +10,7 @@ Key:
Version 1.3.13-dev
+ Added Craftbukkit 1.4.6 compatibility
+ Added a configurable durability cap for ArmorImpact to advanced.yml
+ + Added version number to /mcmmo
= Fixed issue with missing default cases from several switch/case statements
= Fixed issue with Mining using actual skill level rather than max skill level
= Fixed some issues with static access
@@ -133,15 +133,15 @@ public static void impact(Player attacker, LivingEntity target, EntityDamageByEn
int impactIncreaseLevel = advancedConfig.getArmorImpactIncreaseLevel();
float impactMaxDamage = (float) advancedConfig.getArmorImpactMaxDurabilityDamage() / 100F;
short maxDurability;
- durabilityDamage += (int) (((double) Users.getProfile(attacker).getSkillLevel(SkillType.AXES) / (double) impactIncreaseLevel));
+ durabilityDamage += (int) ((double) Users.getProfile(attacker).getSkillLevel(SkillType.AXES) / (double) impactIncreaseLevel);
if (!hasArmor(targetPlayer)) {
applyGreaterImpact(attacker, target, event);
}
else {
for (ItemStack armor : targetPlayer.getInventory().getArmorContents()) {
if(Math.random() * 100 > 75) {
- int lowerdamage = 0;
+ int lowerdamage = 0;
for (int i = 0; i <= durabilityDamage; i ++) {
if (armor.containsEnchantment(Enchantment.DURABILITY)) {
int level = armor.getEnchantmentLevel(Enchantment.DURABILITY);

0 comments on commit 2968803

Please sign in to comment.