zone loading

This commit is contained in:
2024-04-30 20:25:33 -05:00
parent 5f0eb266c2
commit e3c8be6102
+2
View File
@@ -2889,6 +2889,8 @@ public class PlayerCharacter extends AbstractCharacter {
}
public synchronized void grantXP(int xp) {
xp *= Float.parseFloat(ConfigManager.MB_NORMAL_EXP_RATE.getValue());
// Stop players from getting experience past the cap
if (this.exp + xp >= Experience.getBaseExperience(MBServerStatics.LEVELCAP))
xp = Experience.getBaseExperience(MBServerStatics.LEVELCAP) - this.exp + 1;