ok, maybe let him have a little fun

This commit is contained in:
darkrose 2015-12-02 18:47:15 +10:00
parent b695124770
commit bd522fc6f0
1 changed files with 4 additions and 9 deletions

View File

@ -141,12 +141,7 @@ DiggingProperties getDiggingProperties(content_t content, u8 mineral, content_t
break;
case ENCHANTMENT_LONGLASTING:
{
f32 w = wp*(info.level+1);
if (w >= wear+1) {
wear = 1;
}else{
wear -= w;
}
wear -= wp*(info.level+1);
break;
}
case ENCHANTMENT_FLAME:
@ -155,10 +150,10 @@ DiggingProperties getDiggingProperties(content_t content, u8 mineral, content_t
default:;
}
}
if (time < 0.0)
if (time < 0.01)
time = 0.01;
if (wear < 0.0)
wear = 0.01;
if (wear < 0.1)
wear = 0.1;
}
return DiggingProperties(diggable,time,wear);