mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 13:46:46 +01:00
Allow configuration of Skull Splitter damage modifier.
This commit is contained in:
parent
7203a0fcad
commit
9204b23d51
@ -63,6 +63,8 @@ public class AdvancedConfig extends ConfigLoader {
|
|||||||
public int getArmorImpactIncreaseLevel() { return config.getInt("Skills.Axes.ArmorImpact_IncreaseLevel", 50); }
|
public int getArmorImpactIncreaseLevel() { return config.getInt("Skills.Axes.ArmorImpact_IncreaseLevel", 50); }
|
||||||
public double getArmorImpactMaxDurabilityDamage() { return config.getDouble("Skills.Axes.ArmorImpact_MaxPercentageDurabilityDamage", 20.0D); }
|
public double getArmorImpactMaxDurabilityDamage() { return config.getDouble("Skills.Axes.ArmorImpact_MaxPercentageDurabilityDamage", 20.0D); }
|
||||||
|
|
||||||
|
public int getSkullSplitterModifier() { return config.getInt("Skills.Axes.SkullSplitter_DamagerModifier", 2); }
|
||||||
|
|
||||||
/* EXCAVATION */
|
/* EXCAVATION */
|
||||||
//Nothing to configure, everything is already configurable in config.yml
|
//Nothing to configure, everything is already configurable in config.yml
|
||||||
|
|
||||||
|
@ -17,4 +17,6 @@ public class Axes {
|
|||||||
public static double greaterImpactChance = AdvancedConfig.getInstance().getGreaterImpactChance();
|
public static double greaterImpactChance = AdvancedConfig.getInstance().getGreaterImpactChance();
|
||||||
public static double greaterImpactKnockbackMultiplier = AdvancedConfig.getInstance().getGreaterImpactModifier();
|
public static double greaterImpactKnockbackMultiplier = AdvancedConfig.getInstance().getGreaterImpactModifier();
|
||||||
public static int greaterImpactBonusDamage = AdvancedConfig.getInstance().getGreaterImpactBonusDamage();
|
public static int greaterImpactBonusDamage = AdvancedConfig.getInstance().getGreaterImpactBonusDamage();
|
||||||
|
|
||||||
|
public static int skullSplitterModifier = AdvancedConfig.getInstance().getSkullSplitterModifier();
|
||||||
}
|
}
|
||||||
|
@ -19,6 +19,6 @@ public class SkullSplitterEventHandler {
|
|||||||
}
|
}
|
||||||
|
|
||||||
protected void applyAbilityEffects() {
|
protected void applyAbilityEffects() {
|
||||||
Combat.applyAbilityAoE(player, target, damage / 2, SkillType.AXES);
|
Combat.applyAbilityAoE(player, target, damage / Axes.skullSplitterModifier, SkillType.AXES);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -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_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_IncreaseLevel: 50
|
||||||
ArmorImpact_MaxPercentageDurabilityDamage: 20.0
|
ArmorImpact_MaxPercentageDurabilityDamage: 20.0
|
||||||
|
|
||||||
|
# SkullSplitter_DamageModifier: Damage will get divided by this modifier
|
||||||
|
SkullSplitter_DamageModifier: 2
|
||||||
#
|
#
|
||||||
# Settings for Fishing
|
# Settings for Fishing
|
||||||
###
|
###
|
||||||
|
Loading…
Reference in New Issue
Block a user