瀏覽代碼

Added Ender Dragon, Wither, and Witch to combat experience multipliers

They do not give any XP by default.

Fixes #1763
TfT_02 11 年之前
父節點
當前提交
c6ea32f0b0
共有 3 個文件被更改,包括 7 次插入0 次删除
  1. 1 0
      Changelog.txt
  2. 3 0
      src/main/java/com/gmail/nossr50/util/skills/CombatUtils.java
  3. 3 0
      src/main/resources/experience.yml

+ 1 - 0
Changelog.txt

@@ -19,6 +19,7 @@ Version 1.4.08-dev
  + Added party alliances, two parties can now team up. Allies share party chat and cannot harm each other.
  + Added new experience bonus perk 'mcmmo.perks.xp.10percentboost.<skillname>' multiplies incoming XP by 1.1
  + Added new experience bonus perk 'mcmmo.perks.xp.customboost.<skillname>' multiplies incoming XP by the boost amount defined in the experience config
+ + Added Ender Dragon, Wither, and Witch to combat experience multipliers - they do not give XP by default
  = Fixed bug where LeafBlower permissions were ignored
  = Fixed bug with toggle commands not properly displaying the success message.
  = Fixed IllegalArgumentException caused by an empty Fishing treasure category

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

@@ -439,6 +439,7 @@ public final class CombatUtils {
                     case BLAZE:
                     case CAVE_SPIDER:
                     case CREEPER:
+                    case ENDER_DRAGON:
                     case ENDERMAN:
                     case GHAST:
                     case GIANT:
@@ -447,6 +448,8 @@ public final class CombatUtils {
                     case SILVERFISH:
                     case SLIME:
                     case SPIDER:
+                    case WITCH:
+                    case WITHER:
                     case ZOMBIE:
                         baseXP = ExperienceConfig.getInstance().getCombatXP(type);
                         break;

+ 3 - 0
src/main/resources/experience.yml

@@ -173,5 +173,8 @@ Experience:
             Silverfish: 3.0
             Blaze: 3.0
             Magma_Cube: 2.0
+            Ender_Dragon: 0.0
+            Wither: 0.0
+            Witch: 0.0
             Iron_Golem: 2.0
             Wither_Skeleton: 4.0