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

This commit is contained in:
nossr50 2012-02-22 20:25:03 -08:00
parent 22c9fca915
commit ca3b7f2172

View File

@ -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