mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Revert "Fix to Customize Skills to use Linear vs Exponential Curve Setting"
This reverts commit 6e2d59e0ab
.
This commit is contained in:
parent
6e2d59e0ab
commit
dc4ac2ebd1
@ -165,8 +165,7 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/* Curve settings */
|
/* Curve settings */
|
||||||
public FormulaType getFormulaType() { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve.DEFAULT")); }
|
public FormulaType getFormulaType() { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve")); }
|
||||||
public FormulaType getFormulaType(SkillType skill) { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve." + StringUtils.getCapitalized(skill.toString()))); }
|
|
||||||
public boolean getCumulativeCurveEnabled() { return config.getBoolean("Experience_Formula.Cumulative_Curve", false); }
|
public boolean getCumulativeCurveEnabled() { return config.getBoolean("Experience_Formula.Cumulative_Curve", false); }
|
||||||
|
|
||||||
/* Curve values */
|
/* Curve values */
|
||||||
|
@ -345,7 +345,7 @@ public class PlayerProfile {
|
|||||||
*/
|
*/
|
||||||
public int getXpToLevel(SkillType skillType) {
|
public int getXpToLevel(SkillType skillType) {
|
||||||
int level = (ExperienceConfig.getInstance().getCumulativeCurveEnabled()) ? UserManager.getPlayer(playerName).getPowerLevel() : skills.get(skillType);
|
int level = (ExperienceConfig.getInstance().getCumulativeCurveEnabled()) ? UserManager.getPlayer(playerName).getPowerLevel() : skills.get(skillType);
|
||||||
FormulaType formulaType = ExperienceConfig.getInstance().getFormulaType(skillType);
|
FormulaType formulaType = ExperienceConfig.getInstance().getFormulaType();
|
||||||
|
|
||||||
return mcMMO.getFormulaManager().getCachedXpToLevel(level, formulaType);
|
return mcMMO.getFormulaManager().getCachedXpToLevel(level, formulaType);
|
||||||
}
|
}
|
||||||
|
@ -14,21 +14,7 @@ Experience_Formula:
|
|||||||
# If an invalid value is entered, this will reset to the default setting, which is LINEAR
|
# If an invalid value is entered, this will reset to the default setting, which is LINEAR
|
||||||
# LINEAR: base + (level * multiplier)
|
# LINEAR: base + (level * multiplier)
|
||||||
# EXPONENTIAL: multiplier * level ^ exponent + base
|
# EXPONENTIAL: multiplier * level ^ exponent + base
|
||||||
Curve:
|
Curve: LINEAR
|
||||||
Swords: LINEAR
|
|
||||||
Taming: EXPONENTIAL
|
|
||||||
Acrobatics: LINEAR
|
|
||||||
Excavation: EXPONENTIAL
|
|
||||||
Herbalism: LINEAR
|
|
||||||
Unarmed: EXPONENTIAL
|
|
||||||
Woodcutting: LINEAR
|
|
||||||
Mining: EXPONENTIAL
|
|
||||||
Archery: LINEAR
|
|
||||||
Axes: EXPONENTIAL
|
|
||||||
Repair: LINEAR
|
|
||||||
Fishing: EXPONENTIAL
|
|
||||||
Alchemy: LINEAR
|
|
||||||
DEFAULT: LINEAR
|
|
||||||
|
|
||||||
# If invalid values are entered mcMMO will not start and print an error in the console
|
# If invalid values are entered mcMMO will not start and print an error in the console
|
||||||
Linear_Values:
|
Linear_Values:
|
||||||
|
Loading…
Reference in New Issue
Block a user