Bonus XP for early combat levels

This commit is contained in:
nossr50 2019-04-23 03:52:48 -07:00
parent 372ad1fac3
commit cee0025147
2 changed files with 11 additions and 0 deletions

View File

@ -8,6 +8,8 @@ Version 2.1.48
Dodge now gives 800 XP Dodge now gives 800 XP
Roll now gives 600 XP Roll now gives 600 XP
Fall now gives 600 XP Fall now gives 600 XP
The first 10/100 levels of Combat skills now gives a small amount of bonus XP (this amount is not multiplied by any modifiers other than XP rate)
Note: First 10 in Standard, first 100 in Retro
Dev Notes: Dev Notes:
I will be making a write up soon explaining near future plans for mcMMO and what is going on with the config update, abstraction update, etc... I will be making a write up soon explaining near future plans for mcMMO and what is going on with the config update, abstraction update, etc...

View File

@ -609,6 +609,15 @@ public final class CombatUtils {
baseXP *= multiplier; 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) { if (baseXP != 0) {
new AwardCombatXpTask(mcMMOPlayer, primarySkillType, baseXP, target, xpGainReason).runTaskLater(mcMMO.p, 0); new AwardCombatXpTask(mcMMOPlayer, primarySkillType, baseXP, target, xpGainReason).runTaskLater(mcMMO.p, 0);
} }