December 2014 files

This commit is contained in:
Loki Rautio
2026-03-01 11:00:23 -06:00
parent b691c43c44
commit 8fd3ac6e37
2049 changed files with 260190 additions and 134787 deletions

View File

@@ -9,14 +9,14 @@ ShearsItem::ShearsItem(int itemId) : Item(itemId)
setMaxDamage(238);
}
bool ShearsItem::mineBlock(shared_ptr<ItemInstance> itemInstance, Level *level, int tile, int x, int y, int z, shared_ptr<Mob> owner)
bool ShearsItem::mineBlock(shared_ptr<ItemInstance> itemInstance, Level *level, int tile, int x, int y, int z, shared_ptr<LivingEntity> owner)
{
if (tile == Tile::leaves_Id || tile == Tile::web_Id || tile == Tile::tallgrass_Id || tile == Tile::vine_Id || tile == Tile::tripWire_Id)
if (tile == Tile::leaves_Id || tile == Tile::web_Id || tile == Tile::tallgrass_Id || tile == Tile::vine_Id || tile == Tile::tripWire_Id)
{
itemInstance->hurt(1, owner);
itemInstance->hurtAndBreak(1, owner);
return true;
}
return Item::mineBlock(itemInstance, level, tile, x, y, z, owner);
}
return Item::mineBlock(itemInstance, level, tile, x, y, z, owner);
}
bool ShearsItem::canDestroySpecial(Tile *tile)
@@ -26,13 +26,13 @@ bool ShearsItem::canDestroySpecial(Tile *tile)
float ShearsItem::getDestroySpeed(shared_ptr<ItemInstance> itemInstance, Tile *tile)
{
if (tile->id == Tile::web_Id || tile->id == Tile::leaves_Id)
if (tile->id == Tile::web_Id || tile->id == Tile::leaves_Id)
{
return 15;
}
if (tile->id == Tile::cloth_Id)
return 15;
}
if (tile->id == Tile::wool_Id)
{
return 5;
}
return Item::getDestroySpeed(itemInstance, tile);
return 5;
}
return Item::getDestroySpeed(itemInstance, tile);
}