mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
2.1.50
This commit is contained in:
parent
f4214e2031
commit
f7eb06e80b
@ -1,9 +1,17 @@
|
|||||||
Version 2.1.50
|
Version 2.1.50
|
||||||
|
Fixed a bug where early game XP boost (level 1-5) didn't function in certain circumstances
|
||||||
Updated German locale (thanks OverCrave)
|
Updated German locale (thanks OverCrave)
|
||||||
Added missing Herbalism XP values for: Bamboo, Cornflower, Lily of the valley, Wither rose (thanks Zed-I)
|
Added missing Herbalism XP values for: Bamboo, Cornflower, Lily of the valley, Wither rose (thanks Zed-I)
|
||||||
Added missing Mining XP values for: Stone Bricks, Cracked Stone Bricks, Mossy Stone Bricks, Chiseled Stone Bricks, Prismarine Bricks, Dark Prismarine, Sea Lantern (thanks Zed-I)
|
Added missing Mining XP values for: Stone Bricks, Cracked Stone Bricks, Mossy Stone Bricks, Chiseled Stone Bricks, Prismarine Bricks, Dark Prismarine, Sea Lantern (thanks Zed-I)
|
||||||
Added missing Combat XP multiplier for: Wandering Trader (thanks Zed-I)
|
Added missing Combat XP multiplier for: Wandering Trader (thanks Zed-I)
|
||||||
|
|
||||||
|
Notes:
|
||||||
|
If you haven't upgraded mcMMO since version 2.1.47 or before you will not need to do these steps as the experience file will update once automatically.
|
||||||
|
You can either delete experience.yml to generate a new one or edit it manually
|
||||||
|
This is what the default experience.yml looks like
|
||||||
|
https://paste.gg/p/anonymous/946f62ce7dff4ab7a87cae70c0266313
|
||||||
|
|
||||||
|
|
||||||
Version 2.1.49
|
Version 2.1.49
|
||||||
Added sweet berry bush to Herbalism XP (Update your experience.yml config or delete it to gen a new one)
|
Added sweet berry bush to Herbalism XP (Update your experience.yml config or delete it to gen a new one)
|
||||||
Fixed a bug where falling blocks were not marked as unnatural in water
|
Fixed a bug where falling blocks were not marked as unnatural in water
|
||||||
|
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.50-SNAPSHOT</version>
|
<version>2.1.50</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>
|
||||||
|
@ -95,23 +95,6 @@ public class SelfListener implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
int threshold = ExperienceConfig.getInstance().getDiminishedReturnsThreshold(primarySkillType);
|
|
||||||
|
|
||||||
if (threshold <= 0 || !ExperienceConfig.getInstance().getDiminishedReturnsEnabled()) {
|
|
||||||
// Diminished returns is turned off
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
if (event.getRawXpGained() <= 0) {
|
|
||||||
// Don't calculate for XP subtraction
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (primarySkillType.isChildSkill()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
int earlyLevelBonusXPCap = mcMMO.isRetroModeEnabled() ? 50 : 5;
|
int earlyLevelBonusXPCap = mcMMO.isRetroModeEnabled() ? 50 : 5;
|
||||||
|
|
||||||
int earlyGameBonusXP = 0;
|
int earlyGameBonusXP = 0;
|
||||||
@ -123,6 +106,22 @@ public class SelfListener implements Listener {
|
|||||||
event.setRawXpGained(event.getRawXpGained() + earlyGameBonusXP);
|
event.setRawXpGained(event.getRawXpGained() + earlyGameBonusXP);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int threshold = ExperienceConfig.getInstance().getDiminishedReturnsThreshold(primarySkillType);
|
||||||
|
|
||||||
|
if (threshold <= 0 || !ExperienceConfig.getInstance().getDiminishedReturnsEnabled()) {
|
||||||
|
// Diminished returns is turned off
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (event.getRawXpGained() <= 0) {
|
||||||
|
// Don't calculate for XP subtraction
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (primarySkillType.isChildSkill()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
final float rawXp = event.getRawXpGained();
|
final float rawXp = event.getRawXpGained();
|
||||||
|
|
||||||
float guaranteedMinimum = ExperienceConfig.getInstance().getDiminishedReturnsCap() * rawXp;
|
float guaranteedMinimum = ExperienceConfig.getInstance().getDiminishedReturnsCap() * rawXp;
|
||||||
|
Loading…
Reference in New Issue
Block a user