mirror of
https://gitea.sffempire.ru/Kolyah35/minecraft-pe-0.6.1.git
synced 2026-03-20 23:13:33 +00:00
the whole game
This commit is contained in:
27
src/world/item/HatchetItem.cpp
Executable file
27
src/world/item/HatchetItem.cpp
Executable file
@@ -0,0 +1,27 @@
|
||||
#include "HatchetItem.h"
|
||||
#include "../level/material/Material.h"
|
||||
#include "../level/tile/Tile.h"
|
||||
|
||||
|
||||
HatchetItem::HatchetItem( int id, const Tier& tier ) : super(id, 3, tier)
|
||||
{
|
||||
TileList d;
|
||||
d.push_back(Tile::wood);
|
||||
d.push_back(Tile::bookshelf);
|
||||
d.push_back(Tile::treeTrunk);
|
||||
d.push_back(Tile::chest);
|
||||
d.push_back(Tile::stoneSlab);
|
||||
d.push_back(Tile::stoneSlabHalf);
|
||||
//d.push_back(Tile::pumpkin);
|
||||
//d.push_back(Tile::litPumpkin);
|
||||
|
||||
setTiles(d);
|
||||
}
|
||||
|
||||
float HatchetItem::getDestroySpeed( ItemInstance* itemInstance, Tile* tile )
|
||||
{
|
||||
if (tile != NULL && tile->material == Material::wood) {
|
||||
return speed;
|
||||
}
|
||||
return super::getDestroySpeed(itemInstance, tile);
|
||||
}
|
||||
Reference in New Issue
Block a user