mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Fixed a bug where RetroMode would always use Linear formula
This commit is contained in:
parent
11f669f8f4
commit
54eca5b8ba
@ -1,3 +1,6 @@
|
|||||||
|
Version 2.1.65
|
||||||
|
Corrected a bug that would cause RetroMode to use Linear formula regardless of setting
|
||||||
|
|
||||||
Version 2.1.64
|
Version 2.1.64
|
||||||
Corrected how Standard mode (1-100 scaling) XP to next level was calculated, it is now a true 1:10 ratio with Retro (1-1000) scale, which is how it was intended to be to begin with
|
Corrected how Standard mode (1-100 scaling) XP to next level was calculated, it is now a true 1:10 ratio with Retro (1-1000) scale, which is how it was intended to be to begin with
|
||||||
Fixed a bug that caused skill messages to spam nearby players
|
Fixed a bug that caused skill messages to spam nearby players
|
||||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||||
<artifactId>mcMMO</artifactId>
|
<artifactId>mcMMO</artifactId>
|
||||||
<version>2.1.64</version>
|
<version>2.1.65</version>
|
||||||
<name>mcMMO</name>
|
<name>mcMMO</name>
|
||||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||||
<scm>
|
<scm>
|
||||||
|
@ -22,12 +22,8 @@ public class FormulaManager {
|
|||||||
|
|
||||||
private FormulaType previousFormula;
|
private FormulaType previousFormula;
|
||||||
|
|
||||||
//Used for XP formula scaling
|
|
||||||
private boolean retroModeEnabled;
|
|
||||||
|
|
||||||
public FormulaManager() {
|
public FormulaManager() {
|
||||||
/* Setting for Classic Mode (Scales a lot of stuff up by * 10) */
|
/* Setting for Classic Mode (Scales a lot of stuff up by * 10) */
|
||||||
retroModeEnabled = Config.getInstance().getIsRetroMode();
|
|
||||||
initExperienceNeededMaps();
|
initExperienceNeededMaps();
|
||||||
loadFormula();
|
loadFormula();
|
||||||
}
|
}
|
||||||
@ -182,7 +178,7 @@ public class FormulaManager {
|
|||||||
Map<Integer, Integer> experienceMapRef = formulaType == FormulaType.LINEAR ? experienceNeededRetroLinear : experienceNeededRetroExponential;
|
Map<Integer, Integer> experienceMapRef = formulaType == FormulaType.LINEAR ? experienceNeededRetroLinear : experienceNeededRetroExponential;
|
||||||
|
|
||||||
if (!experienceMapRef.containsKey(level)) {
|
if (!experienceMapRef.containsKey(level)) {
|
||||||
int experience = calculateXPNeeded(level, FormulaType.LINEAR);
|
int experience = calculateXPNeeded(level, formulaType);
|
||||||
experienceMapRef.put(level, experience);
|
experienceMapRef.put(level, experience);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user