Give grapple hooks more uses

This commit is contained in:
LoneWolfHT 2020-12-02 11:50:45 -08:00
parent 063c6fb458
commit 8d55487a77

View file

@ -16,7 +16,7 @@ end
wrap_callback("shooter_hook:grapple_hook", "on_use", function(old, itemstack, user, pointed_thing, ...)
if pointed_thing.type == "nothing" then
local before = itemstack:get_wear()
itemstack:add_wear(65536 / 16)
itemstack:add_wear(65536 / 32)
if itemstack:get_wear() < before then
itemstack:set_wear(65535)
@ -29,7 +29,7 @@ end)
wrap_callback("shooter_hook:grapple_gun_loaded", "on_use", function(old, itemstack, user, pointed_thing, ...)
if pointed_thing.type == "nothing" then
local before = itemstack:get_wear()
itemstack:add_wear(65536 / 8)
itemstack:add_wear(65536 / 16)
if itemstack:get_wear() < before then
itemstack:set_wear(65535)