mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-12-02 01:46:45 +01:00
Account for skill and global experience modifiers
This commit is contained in:
parent
0092f31569
commit
5e3383dbf4
@ -50,7 +50,8 @@ public class SelfListener implements Listener {
|
||||
return;
|
||||
}
|
||||
|
||||
float difference = (mcMMOPlayer.getProfile().getRegisteredXpGain(skillType) - threshold) / threshold;
|
||||
float modifiedThreshold = (float) (threshold / skillType.getXpModifier() * Config.getInstance().getExperienceGainsGlobalMultiplier());
|
||||
float difference = (mcMMOPlayer.getProfile().getRegisteredXpGain(skillType) - modifiedThreshold) / modifiedThreshold;
|
||||
|
||||
if (difference > 0) {
|
||||
// System.out.println("Total XP Earned: " + mcMMOPlayer.getProfile().getRegisteredXpGain(skillType) + " / Threshold value: " + threshold);
|
||||
|
Loading…
Reference in New Issue
Block a user