Correct drops for Snow and Cake

This commit is contained in:
Shoghi Cervantes 2013-06-06 22:44:20 +02:00
parent 28f6a964d4
commit ab3fcfc148
4 changed files with 30 additions and 2 deletions

View file

@ -147,6 +147,23 @@ class Item{
}
}
final public function isShovel(){
switch($this->id){
case IRON_SHOVEL:
return 4;
case WOODEN_SHOVEL:
return 1;
case STONE_SHOVEL:
return 3;
case DIAMOND_SHOVEL:
return 5;
case GOLD_SHOVEL:
return 2;
default:
return false;
}
}
public function isHoe(){
switch($this->id){
case IRON_HOE: