浏览代码

Fixed PVE experience gains not leveling up skills

nossr50 13 年之前
父节点
当前提交
14f1a91eeb
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 2 2
      Changelog.txt
  2. 1 0
      src/main/java/com/gmail/nossr50/Combat.java

+ 2 - 2
Changelog.txt

@@ -8,13 +8,13 @@ Key:
   - Removal
 
 Version 1.3.02
- + Added Ocelots to Taming XP tables.
  ! Changed Tree Feller to hand out 1/4 of normal XP for each JUNGLE LOG block it fells
  ! Changed Tree Feller to only fell trees if you have enough durability
  ! Changed Tree Feller to cause injury if your axe splinters from a failed Tree Feller attempt
  ! Changed invincibility checks in EntityDamage listeners to accommodate for vanilla MC behaviour
  ! Changed Ignition to add fire ticks rather than replacing them.
- ! Fixed Impact proccing multiple times in a row
+ = Fixed Impact proccing multiple times in a row
+ = Fixed bug where PVE skills didn't level
 
 Version 1.3.01
  = Fixed bug where Tree Feller had no cooldown

+ 1 - 0
src/main/java/com/gmail/nossr50/Combat.java

@@ -361,6 +361,7 @@ public class Combat
 	{
    		int xp = getXp(target, damage);
 		PPa.addXP(skillType, xp*10, attacker);
+		Skills.XpCheckSkill(skillType, attacker);
 	}
 	
 	public static int getXp(Entity entity, int damage)