mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-25 22:56:45 +01:00
Added level curve modifier
This commit is contained in:
parent
1ae11da036
commit
3218c544dc
@ -11,6 +11,7 @@ Version 1.3.07
|
|||||||
+ Added new configurable Hardcore mode functionality to mcMMO
|
+ Added new configurable Hardcore mode functionality to mcMMO
|
||||||
+ Added new configurable Vampirism PVP stat leech for Hardcore mode
|
+ Added new configurable Vampirism PVP stat leech for Hardcore mode
|
||||||
+ Added new bypass permission node for the negative penalties of Hardcore mode 'mcmmo.bypass.hardcoremode'
|
+ Added new bypass permission node for the negative penalties of Hardcore mode 'mcmmo.bypass.hardcoremode'
|
||||||
|
+ Added configurable level curve multiplier which allows for tweaking the steepness of the XP needed to level formula
|
||||||
+ Added a permission node for Archery bonus damage
|
+ Added a permission node for Archery bonus damage
|
||||||
+ Added a permission node for Greater Impact ability
|
+ Added a permission node for Greater Impact ability
|
||||||
+ Added permission nodes for Treasure & Magic Hunter for Fishing
|
+ Added permission nodes for Treasure & Magic Hunter for Fishing
|
||||||
|
@ -355,6 +355,7 @@ public class Config extends ConfigLoader {
|
|||||||
public double getIronGolemXP() { return config.getDouble("Experience.Combat.Multiplier.Iron_Golem", 2.0); }
|
public double getIronGolemXP() { return config.getDouble("Experience.Combat.Multiplier.Iron_Golem", 2.0); }
|
||||||
|
|
||||||
/* XP Formula Multiplier */
|
/* XP Formula Multiplier */
|
||||||
|
public int getFormulaMultiplierCurve() { return config.getInt("Experience.Formula.Curve_Modifier", 20); }
|
||||||
public double getFormulaMultiplierTaming() { return config.getDouble("Experience.Formula.Multiplier.Taming", 1.0); }
|
public double getFormulaMultiplierTaming() { return config.getDouble("Experience.Formula.Multiplier.Taming", 1.0); }
|
||||||
public double getFormulaMultiplierMining() { return config.getDouble("Experience.Formula.Multiplier.Mining", 1.0); }
|
public double getFormulaMultiplierMining() { return config.getDouble("Experience.Formula.Multiplier.Mining", 1.0); }
|
||||||
public double getFormulaMultiplierRepair() { return config.getDouble("Experience.Formula.Multiplier.Repair", 1.0); }
|
public double getFormulaMultiplierRepair() { return config.getDouble("Experience.Formula.Multiplier.Repair", 1.0); }
|
||||||
|
@ -1112,7 +1112,7 @@ public class PlayerProfile {
|
|||||||
* @return the XP remaining until next level
|
* @return the XP remaining until next level
|
||||||
*/
|
*/
|
||||||
public int getXpToLevel(SkillType skillType) {
|
public int getXpToLevel(SkillType skillType) {
|
||||||
return (int) (1020 + (skills.get(skillType) * 20)); //Do we REALLY need to cast to int here?
|
return 1020 + (skills.get(skillType) * Config.getInstance().getFormulaMultiplierCurve()); //Do we REALLY need to cast to int here?
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -229,6 +229,7 @@ Experience:
|
|||||||
PVP:
|
PVP:
|
||||||
Rewards: true
|
Rewards: true
|
||||||
Formula:
|
Formula:
|
||||||
|
Curve_Modifier: 20
|
||||||
Multiplier:
|
Multiplier:
|
||||||
Swords: 1.0
|
Swords: 1.0
|
||||||
Taming: 1.0
|
Taming: 1.0
|
||||||
|
Loading…
Reference in New Issue
Block a user