mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Bonus XP for early combat levels
This commit is contained in:
parent
372ad1fac3
commit
cee0025147
@ -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...
|
||||||
|
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user