Account for skill and global experience modifiers

This commit is contained in:
TfT_02 2013-05-04 10:51:24 +02:00
parent 0092f31569
commit 5e3383dbf4

View File

@ -50,7 +50,8 @@ public class SelfListener implements Listener {
return; 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) { if (difference > 0) {
// System.out.println("Total XP Earned: " + mcMMOPlayer.getProfile().getRegisteredXpGain(skillType) + " / Threshold value: " + threshold); // System.out.println("Total XP Earned: " + mcMMOPlayer.getProfile().getRegisteredXpGain(skillType) + " / Threshold value: " + threshold);