int boost = 8 + ((current - 1) / 50 * 2);
Item temp = tool.getItem();
if (temp instanceof ToolCore)
{
ToolCore toolcore = (ToolCore) temp;
if (toolcore.durabilityTypeHandle() == 2)
boost += 2;
if (toolcore.durabilityTypeAccessory() == 2)
boost += 2;
if (toolcore.durabilityTypeExtra() == 2)
boost += 2;