mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-12-24 01:30:38 +01:00
Remove our fix and replace with better Tenplus1's fix
This commit is contained in:
parent
637c06f6cc
commit
34ae29e899
@ -1130,8 +1130,8 @@ end
|
||||
on_punch = function(self, hitter, tflp, tool_capabilities, dir)
|
||||
-- weapon wear
|
||||
local weapon = hitter:get_wielded_item()
|
||||
if weapon:get_definition().tool_capabilities ~= nil and weapon:get_definition().tool_capabilities.full_punch_interval ~= nil then
|
||||
local wear = ( weapon:get_definition().tool_capabilities.full_punch_interval / 75 ) * 9000
|
||||
if weapon:get_definition().tool_capabilities ~= nil then
|
||||
local wear = ( (weapon:get_definition().tool_capabilities.full_punch_interval or 1.4) / 75 ) * 9000
|
||||
weapon:add_wear(wear)
|
||||
hitter:set_wielded_item(weapon)
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user