mirror of
				https://github.com/mcMMO-Dev/mcMMO.git
				synced 2025-11-04 02:53:43 +01:00 
			
		
		
		
	Bonus XP for early combat levels
This commit is contained in:
		@@ -8,6 +8,8 @@ Version 2.1.48
 | 
			
		||||
    Dodge now gives 800 XP
 | 
			
		||||
    Roll 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:
 | 
			
		||||
    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;
 | 
			
		||||
 | 
			
		||||
        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