mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-26 02:28:03 +01:00
2.1.52
This commit is contained in:
parent
661564df36
commit
f61917e8fe
@ -1,3 +1,8 @@
|
||||
Version 2.1.52
|
||||
Updated Japanese locale (thanks snake0053)
|
||||
Added a toggle for the early game XP boost to experience.yml 'EarlyGameBoost.Enabled'
|
||||
Added a max level multiplier for determining early game boosts cutoff to experience.yml 'EarlyGameBoost.MaxLevelMultiplier'
|
||||
|
||||
Version 2.1.51
|
||||
You can now customize a locale outside of the JAR! (Thanks mikroskeem)
|
||||
Added a new locale reload command 'mmolocalereload' (Thanks mikroskeem)
|
||||
|
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.gmail.nossr50.mcMMO</groupId>
|
||||
<artifactId>mcMMO</artifactId>
|
||||
<version>2.1.51</version>
|
||||
<version>2.1.52</version>
|
||||
<name>mcMMO</name>
|
||||
<url>https://github.com/mcMMO-Dev/mcMMO</url>
|
||||
<scm>
|
||||
|
@ -137,6 +137,9 @@ public class ExperienceConfig extends AutoUpdateConfigLoader {
|
||||
return noErrorsInConfig(reason);
|
||||
}
|
||||
|
||||
public boolean isEarlyGameBoostEnabled() { return config.getBoolean("EarlyGameBoost.Enabled", true); }
|
||||
public double getEarlyGameBoostMultiplier() { return config.getDouble("EarlyGameBoost.MaxLevelMultiplier", 0.05D); }
|
||||
|
||||
/*
|
||||
* FORMULA SETTINGS
|
||||
*/
|
||||
|
@ -95,17 +95,21 @@ public class SelfListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
int earlyLevelBonusXPCap = mcMMO.isRetroModeEnabled() ? 50 : 5;
|
||||
|
||||
int earlyGameBonusXP = 0;
|
||||
|
||||
//Give some bonus XP for low levels
|
||||
if(mcMMOPlayer.getSkillLevel(primarySkillType) < earlyLevelBonusXPCap)
|
||||
if(ExperienceConfig.getInstance().isEarlyGameBoostEnabled())
|
||||
{
|
||||
earlyGameBonusXP += (mcMMOPlayer.getXpToLevel(primarySkillType) * 0.05);
|
||||
event.setRawXpGained(event.getRawXpGained() + earlyGameBonusXP);
|
||||
int earlyLevelBonusXPCap = (int) (ExperienceConfig.getInstance().getEarlyGameBoostMultiplier() * Config.getInstance().getLevelCap(event.getSkill()));
|
||||
|
||||
int earlyGameBonusXP = 0;
|
||||
|
||||
//Give some bonus XP for low levels
|
||||
if(mcMMOPlayer.getSkillLevel(primarySkillType) < earlyLevelBonusXPCap)
|
||||
{
|
||||
earlyGameBonusXP += (mcMMOPlayer.getXpToLevel(primarySkillType) * 0.05);
|
||||
event.setRawXpGained(event.getRawXpGained() + earlyGameBonusXP);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
int threshold = ExperienceConfig.getInstance().getDiminishedReturnsThreshold(primarySkillType);
|
||||
|
||||
if (threshold <= 0 || !ExperienceConfig.getInstance().getDiminishedReturnsEnabled()) {
|
||||
|
@ -22,6 +22,10 @@
|
||||
# Splits the boss bar into 6 segments
|
||||
#SOLID
|
||||
# The bar is one solid piece
|
||||
EarlyGameBoost:
|
||||
Enabled: true
|
||||
#Used to determine the cap of the max boot, with default level cap it will be 5 on standard, and 50 on retro
|
||||
MaxLevelMultiplier: 0.05
|
||||
ExploitFix:
|
||||
# Prevent many exploits related to fishing
|
||||
Fishing: true
|
||||
|
Loading…
Reference in New Issue
Block a user