|
@@ -5,28 +5,96 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
|
|
|
|
|
@ConfigSerializable
|
|
|
public class ConfigAxes {
|
|
|
- public static final double IMPACT_CHANCE_DEFAULT = 25.0D;
|
|
|
- public static final double IMPACT_DURABILITY_MULTIPLIER_DEFAULT = 6.5D;
|
|
|
-
|
|
|
/*
|
|
|
- public double getImpactChance() { return config.getDouble("Skills.Axes.ArmorImpact.Chance", 25.0D); }
|
|
|
- public double getImpactDurabilityDamageMultiplier() { return config.getDouble("Skills.Axes.ArmorImpact.DamagePerRank", 6.5D); }
|
|
|
+ public static double getAxeMasteryRankDamageMultiplier() {
|
|
|
+ return axeMasteryRankDamageMultiplier;
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getImpactDamageMultiplier() {
|
|
|
+ return impactDamageMultiplier;
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getCriticalHitPVPModifier() {
|
|
|
+ return criticalHitPVPModifier;
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getCriticalHitPVEModifier() {
|
|
|
+ return criticalHitPVEModifier;
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getGreaterImpactBonusDamage() {
|
|
|
+ return greaterImpactBonusDamage;
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getGreaterImpactKnockbackMultiplier() {
|
|
|
+ return greaterImpactKnockbackMultiplier;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ GreaterImpact:
|
|
|
+ # Chance: Chance of hitting with GreaterImpact, mobs are knocked backwards when successful
|
|
|
+ # KnockbackModifier: Velocity modifier of GreaterImpact hits, this determines how great the knockback is
|
|
|
+ # BonusDamage: Extra damage for GreaterImpact hits
|
|
|
+ Chance: 25.0
|
|
|
+ KnockbackModifier: 1.5
|
|
|
+ BonusDamage: 2.0
|
|
|
+ ArmorImpact:
|
|
|
+ # Multiplied against the skill rank to determine how much damage to do
|
|
|
+ DamagePerRank: 6.5
|
|
|
+ # IncreaseLevel: Every <IncreaseLevel> the durability damage goes up with 1
|
|
|
+ # Chance: Chance of hitting with ArmorImpact
|
|
|
+ # MaxPercentageDurabilityDamage: Durability damage cap for ArmorImpact, 20% means that you can never destroy a piece of armor in less than 5 hits
|
|
|
+ Chance: 25.0
|
|
|
*/
|
|
|
|
|
|
- @Setting(value = "Impact-Activation-Chance", comment = "Chance to activate the Impact skill, this is a static chance and does not change per rank of the skill." +
|
|
|
- "\nDefault value: "+IMPACT_CHANCE_DEFAULT)
|
|
|
- private double impactChance = IMPACT_CHANCE_DEFAULT;
|
|
|
+ @Setting(value = "Axe-Mastery")
|
|
|
+ private ConfigAxesAxeMastery configAxesAxeMastery = new ConfigAxesAxeMastery();
|
|
|
+
|
|
|
+ @Setting(value = "Critical-Strikes")
|
|
|
+ private ConfigAxesCriticalStrikes configAxesCriticalStrikes = new ConfigAxesCriticalStrikes();
|
|
|
+
|
|
|
+ @Setting(value = "Greater-Impact")
|
|
|
+ private ConfigAxesGreaterImpact configAxesGreaterImpact = new ConfigAxesGreaterImpact();
|
|
|
|
|
|
- @Setting(value = "Impact-Durability-Damage-Multiplier", comment = "The amount of durability damage done by Impact is multiplied by this number" +
|
|
|
- "\nThe damage done by impact starts at 1 and increases by 1 every rank, this value is then multiplied by this variable to determine the durability damage done to armor." +
|
|
|
- "\nDefault value: "+IMPACT_DURABILITY_MULTIPLIER_DEFAULT)
|
|
|
- private double impactDurabilityDamageModifier = IMPACT_DURABILITY_MULTIPLIER_DEFAULT;
|
|
|
+ @Setting(value = "Impact")
|
|
|
+ private ConfigAxesImpact configAxesImpact = new ConfigAxesImpact();
|
|
|
+
|
|
|
+ @Setting(value = "Skull-Splitter")
|
|
|
+ private ConfigAxesSkullSplitter configAxesSkullSplitter = new ConfigAxesSkullSplitter();
|
|
|
+
|
|
|
+ public double getSkullSplitterDamageDivisor() {
|
|
|
+ return configAxesSkullSplitter.getSkullSplitterDamageDivisor();
|
|
|
+ }
|
|
|
+
|
|
|
+ public ConfigAxesAxeMastery getConfigAxesAxeMastery() {
|
|
|
+ return configAxesAxeMastery;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ConfigAxesCriticalStrikes getConfigAxesCriticalStrikes() {
|
|
|
+ return configAxesCriticalStrikes;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ConfigAxesGreaterImpact getConfigAxesGreaterImpact() {
|
|
|
+ return configAxesGreaterImpact;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ConfigAxesImpact getConfigAxesImpact() {
|
|
|
+ return configAxesImpact;
|
|
|
+ }
|
|
|
+
|
|
|
+ public ConfigAxesSkullSplitter getConfigAxesSkullSplitter() {
|
|
|
+ return configAxesSkullSplitter;
|
|
|
+ }
|
|
|
|
|
|
public double getImpactChance() {
|
|
|
- return impactChance;
|
|
|
+ return configAxesImpact.getImpactChance();
|
|
|
}
|
|
|
|
|
|
public double getImpactDurabilityDamageModifier() {
|
|
|
- return impactDurabilityDamageModifier;
|
|
|
+ return configAxesImpact.getImpactDurabilityDamageModifier();
|
|
|
+ }
|
|
|
+
|
|
|
+ public double getAxeMasteryMultiplier() {
|
|
|
+ return configAxesAxeMastery.getAxeMasteryMultiplier();
|
|
|
}
|
|
|
}
|