Changed Excavation to have individual XP values for each block type,

rather than a base XP value
This commit is contained in:
GJ
2013-01-27 01:09:20 -05:00
parent d43e61a49c
commit 43dbb94a7f
4 changed files with 48 additions and 3 deletions

View File

@ -56,7 +56,39 @@ public class Excavation {
xp = ModChecks.getCustomBlock(block).getXpGain();
}
else {
xp = Config.getInstance().getExcavationBaseXP();
switch (type) {
case CLAY:
xp = Config.getInstance().getExcavationClayXP();
break;
case DIRT:
xp = Config.getInstance().getExcavationDirtXP();
break;
case GRASS:
xp = Config.getInstance().getExcavationGrassXP();
break;
case GRAVEL:
xp = Config.getInstance().getExcavationGravelXP();
break;
case MYCEL:
xp = Config.getInstance().getExcavationMycelXP();
break;
case SAND:
xp = Config.getInstance().getExcavationSandXP();
break;
case SOUL_SAND:
xp = Config.getInstance().getExcavationSoulSandXP();
break;
default:
xp = 0;
break;
}
}
if (Permissions.excavationTreasures(player)) {