mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 14:46:46 +01:00
parent
90e7aee6d7
commit
1211101265
@ -165,8 +165,7 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
|
||||
*/
|
||||
|
||||
/* Curve settings */
|
||||
public FormulaType getFormulaType() { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve.DEFAULT")); }
|
||||
public FormulaType getFormulaType(SkillType skill) { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve." + StringUtils.getCapitalized(skill.toString()))); }
|
||||
public FormulaType getFormulaType() { return FormulaType.getFormulaType(config.getString("Experience_Formula.Curve")); }
|
||||
public boolean getCumulativeCurveEnabled() { return config.getBoolean("Experience_Formula.Cumulative_Curve", false); }
|
||||
|
||||
/* Curve values */
|
||||
|
@ -345,7 +345,7 @@ public class PlayerProfile {
|
||||
*/
|
||||
public int getXpToLevel(SkillType 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);
|
||||
}
|
||||
|
@ -14,21 +14,7 @@ Experience_Formula:
|
||||
# If an invalid value is entered, this will reset to the default setting, which is LINEAR
|
||||
# LINEAR: base + (level * multiplier)
|
||||
# EXPONENTIAL: multiplier * level ^ exponent + base
|
||||
Curve:
|
||||
Swords: LINEAR
|
||||
Taming: LINEAR
|
||||
Acrobatics: LINEAR
|
||||
Excavation: LINEAR
|
||||
Herbalism: LINEAR
|
||||
Unarmed: LINEAR
|
||||
Woodcutting: LINEAR
|
||||
Mining: LINEAR
|
||||
Archery: LINEAR
|
||||
Axes: LINEAR
|
||||
Repair: LINEAR
|
||||
Fishing: LINEAR
|
||||
Alchemy: LINEAR
|
||||
DEFAULT: LINEAR
|
||||
Curve: LINEAR
|
||||
|
||||
# If invalid values are entered mcMMO will not start and print an error in the console
|
||||
Linear_Values:
|
||||
|
Loading…
Reference in New Issue
Block a user