Give grapple hooks more uses
This commit is contained in:
parent
063c6fb458
commit
8d55487a77
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue