Allow configuration of Skull Splitter damage modifier.

This commit is contained in:
GJ 2013-01-15 17:00:56 -05:00
parent 7203a0fcad
commit 9204b23d51
4 changed files with 8 additions and 1 deletions

View File

@ -63,6 +63,8 @@ public class AdvancedConfig extends ConfigLoader {
public int getArmorImpactIncreaseLevel() { return config.getInt("Skills.Axes.ArmorImpact_IncreaseLevel", 50); }
public double getArmorImpactMaxDurabilityDamage() { return config.getDouble("Skills.Axes.ArmorImpact_MaxPercentageDurabilityDamage", 20.0D); }
public int getSkullSplitterModifier() { return config.getInt("Skills.Axes.SkullSplitter_DamagerModifier", 2); }
/* EXCAVATION */
//Nothing to configure, everything is already configurable in config.yml

View File

@ -17,4 +17,6 @@ public class Axes {
public static double greaterImpactChance = AdvancedConfig.getInstance().getGreaterImpactChance();
public static double greaterImpactKnockbackMultiplier = AdvancedConfig.getInstance().getGreaterImpactModifier();
public static int greaterImpactBonusDamage = AdvancedConfig.getInstance().getGreaterImpactBonusDamage();
public static int skullSplitterModifier = AdvancedConfig.getInstance().getSkullSplitterModifier();
}

View File

@ -19,6 +19,6 @@ public class SkullSplitterEventHandler {
}
protected void applyAbilityEffects() {
Combat.applyAbilityAoE(player, target, damage / 2, SkillType.AXES);
Combat.applyAbilityAoE(player, target, damage / Axes.skullSplitterModifier, SkillType.AXES);
}
}

View File

@ -90,6 +90,9 @@ Skills:
# ArmorImpact_MaxPercentageDurabilityDamage: Durability damage cap for ArmorImpact, 20% means that you can never destroy a piece of armor in less than 5 hits
ArmorImpact_IncreaseLevel: 50
ArmorImpact_MaxPercentageDurabilityDamage: 20.0
# SkullSplitter_DamageModifier: Damage will get divided by this modifier
SkullSplitter_DamageModifier: 2
#
# Settings for Fishing
###