mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Fixed formatting
This commit is contained in:
parent
6cf6e8ab54
commit
2968803f29
@ -10,6 +10,7 @@ Key:
|
|||||||
Version 1.3.13-dev
|
Version 1.3.13-dev
|
||||||
+ Added Craftbukkit 1.4.6 compatibility
|
+ Added Craftbukkit 1.4.6 compatibility
|
||||||
+ Added a configurable durability cap for ArmorImpact to advanced.yml
|
+ 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 missing default cases from several switch/case statements
|
||||||
= Fixed issue with Mining using actual skill level rather than max skill level
|
= Fixed issue with Mining using actual skill level rather than max skill level
|
||||||
= Fixed some issues with static access
|
= Fixed some issues with static access
|
||||||
|
@ -133,7 +133,7 @@ public class Axes {
|
|||||||
int impactIncreaseLevel = advancedConfig.getArmorImpactIncreaseLevel();
|
int impactIncreaseLevel = advancedConfig.getArmorImpactIncreaseLevel();
|
||||||
float impactMaxDamage = (float) advancedConfig.getArmorImpactMaxDurabilityDamage() / 100F;
|
float impactMaxDamage = (float) advancedConfig.getArmorImpactMaxDurabilityDamage() / 100F;
|
||||||
short maxDurability;
|
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)) {
|
if (!hasArmor(targetPlayer)) {
|
||||||
applyGreaterImpact(attacker, target, event);
|
applyGreaterImpact(attacker, target, event);
|
||||||
@ -141,7 +141,7 @@ public class Axes {
|
|||||||
else {
|
else {
|
||||||
for (ItemStack armor : targetPlayer.getInventory().getArmorContents()) {
|
for (ItemStack armor : targetPlayer.getInventory().getArmorContents()) {
|
||||||
if(Math.random() * 100 > 75) {
|
if(Math.random() * 100 > 75) {
|
||||||
int lowerdamage = 0;
|
int lowerdamage = 0;
|
||||||
for (int i = 0; i <= durabilityDamage; i ++) {
|
for (int i = 0; i <= durabilityDamage; i ++) {
|
||||||
if (armor.containsEnchantment(Enchantment.DURABILITY)) {
|
if (armor.containsEnchantment(Enchantment.DURABILITY)) {
|
||||||
int level = armor.getEnchantmentLevel(Enchantment.DURABILITY);
|
int level = armor.getEnchantmentLevel(Enchantment.DURABILITY);
|
||||||
|
Loading…
Reference in New Issue
Block a user