2
0
Эх сурвалжийг харах

Bonus XP for early combat levels

nossr50 6 жил өмнө
parent
commit
cee0025147

+ 2 - 0
Changelog.txt

@@ -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...

+ 9 - 0
src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java

@@ -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);
         }
         }