Add tool wear for no armor mobs

master
Lean Rada 2015-01-19 22:53:03 +08:00
parent 9a60570f54
commit 0cfce0bc12
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ function mobs.default_prototype:on_punch(puncher, time_from_last_punch, tool_cap
if puncher then
local weapon = puncher:get_wielded_item()
if tool_capabilities then
local wear = (0.01) * (self.armor / 100) * 65535
local wear = (0.01) * (self.armor / 100) * 65534 + 1
weapon:add_wear(wear)
puncher:set_wielded_item(weapon)
end