mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-25 10:14:43 +02:00
Bonus XP for early combat levels
This commit is contained in:
@ -609,6 +609,15 @@ public final class CombatUtils {
|
||||
|
||||
baseXP *= multiplier;
|
||||
|
||||
int earlyLevelBonusXPCap = mcMMO.isRetroModeEnabled() ? 100 : 10;
|
||||
|
||||
//Give some bonus XP for low levels
|
||||
if(baseXP != 0 && mcMMOPlayer.getSkillLevel(primarySkillType) < earlyLevelBonusXPCap)
|
||||
{
|
||||
baseXP += 50;
|
||||
}
|
||||
|
||||
|
||||
if (baseXP != 0) {
|
||||
new AwardCombatXpTask(mcMMOPlayer, primarySkillType, baseXP, target, xpGainReason).runTaskLater(mcMMO.p, 0);
|
||||
}
|
||||
|
Reference in New Issue
Block a user