From ca3b7f21727dc141184b905ba52a4378aecd12db Mon Sep 17 00:00:00 2001 From: nossr50 Date: Wed, 22 Feb 2012 20:25:03 -0800 Subject: [PATCH] Tree Feller now rewards xp based on the type of tree. --- .../com/gmail/nossr50/skills/WoodCutting.java | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java index f336df2a5..c39655ff6 100644 --- a/src/main/java/com/gmail/nossr50/skills/WoodCutting.java +++ b/src/main/java/com/gmail/nossr50/skills/WoodCutting.java @@ -77,7 +77,22 @@ public class WoodCutting if(!plugin.misc.blockWatchList.contains(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