From cee0025147022cc976dddce9819e73317cf18989 Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 23 Apr 2019 03:52:48 -0700 Subject: [PATCH] Bonus XP for early combat levels --- Changelog.txt | 2 ++ .../java/com/gmail/nossr50/util/skills/CombatUtils.java | 9 +++++++++ 2 files changed, 11 insertions(+) diff --git a/Changelog.txt b/Changelog.txt index 5c2fcbbba..bbe5d7f9c 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -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... diff --git a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java index 5d42b0a12..d6c781bb3 100644 --- a/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java +++ b/src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java @@ -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); }