瀏覽代碼

Tree Feller now rewards xp based on the type of tree.

nossr50 13 年之前
父節點
當前提交
ca3b7f2172
共有 1 個文件被更改,包括 16 次插入1 次删除
  1. 16 1
      src/main/java/com/gmail/nossr50/skills/WoodCutting.java

+ 16 - 1
src/main/java/com/gmail/nossr50/skills/WoodCutting.java

@@ -77,7 +77,22 @@ public class WoodCutting
                         if(!plugin.misc.blockWatchList.contains(x))
                         if(!plugin.misc.blockWatchList.contains(x))
                         {
                         {
                             WoodCutting.woodCuttingProcCheck(player, x);
                             WoodCutting.woodCuttingProcCheck(player, x);
-                            PP.addXP(SkillType.WOODCUTTING, LoadProperties.mpine, player);
+                            int xp = 0;
+                            
+                            switch(x.getData())
+                            {
+                                case 0:
+                                    xp += LoadProperties.mpine;
+                                    break;
+                                case 1:
+                                    xp += LoadProperties.mspruce;
+                                    break;
+                                case 2:
+                                    xp += LoadProperties.mbirch;
+                                    break;
+                            }
+                            
+                            PP.addXP(SkillType.WOODCUTTING, xp, player);
                         }
                         }
                         
                         
                         //Drop the block
                         //Drop the block