mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-08-02 12:35:27 +02:00
Rewrote how Arrow Retrieval subskill is handled
This commit is contained in:
@@ -6,7 +6,8 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
@ConfigSerializable
|
||||
public class ConfigExperienceArchery {
|
||||
|
||||
public static final double DISTANCE_MULTIPLIER_DEFAULT = 0.025;
|
||||
private static final double DISTANCE_MULTIPLIER_DEFAULT = 0.025;
|
||||
private static final double ARROW_FORCE_XP_MULTIPLIER = 2.0D;
|
||||
|
||||
@Setting(value = "Distance-Multiplier", comment = "The distance multiplier is multiplied against the distance an " +
|
||||
"arrow travels before hitting its target to determine final XP values awarded." +
|
||||
@@ -16,6 +17,14 @@ public class ConfigExperienceArchery {
|
||||
"\nDefault value: " + DISTANCE_MULTIPLIER_DEFAULT)
|
||||
private double distanceMultiplier = DISTANCE_MULTIPLIER_DEFAULT;
|
||||
|
||||
@Setting(value = "Arrow-Force-XP-Multiplier", comment = "How much velocity the arrow has after leaving the players bow is used in the XP formula for handing out Archery XP." +
|
||||
"\nDefault value: "+ARROW_FORCE_XP_MULTIPLIER)
|
||||
private double forceMultiplier = ARROW_FORCE_XP_MULTIPLIER;
|
||||
|
||||
public double getForceMultiplier() {
|
||||
return forceMultiplier;
|
||||
}
|
||||
|
||||
public double getDistanceMultiplier() {
|
||||
return distanceMultiplier;
|
||||
}
|
||||
|
@@ -7,17 +7,6 @@ import ninja.leaping.configurate.objectmapping.serialize.ConfigSerializable;
|
||||
@ConfigSerializable
|
||||
public class ConfigArchery {
|
||||
|
||||
/* ARCHERY */
|
||||
|
||||
//
|
||||
// public double getDazeBonusDamage() {
|
||||
// return getDoubleValue(SKILLS, ARCHERY, DAZE, BONUS_DAMAGE);
|
||||
// }
|
||||
//
|
||||
// public double getForceMultiplier() {
|
||||
// return getDoubleValue(SKILLS, ARCHERY, FORCE_MULTIPLIER);
|
||||
// }
|
||||
|
||||
@Setting(value = "Daze")
|
||||
private ConfigArcheryDaze daze = new ConfigArcheryDaze();
|
||||
|
||||
@@ -49,6 +38,6 @@ public class ConfigArchery {
|
||||
}
|
||||
|
||||
public double getBonusDamage() {
|
||||
return daze.getBonusDamage();
|
||||
return daze.getDazeBonusDamage();
|
||||
}
|
||||
}
|
@@ -30,7 +30,7 @@ public class ConfigArcheryDaze {
|
||||
return maxBonusLevel;
|
||||
}
|
||||
|
||||
public double getBonusDamage() {
|
||||
public double getDazeBonusDamage() {
|
||||
return bonusDamage;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user