1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-11-11 04:50:17 +01:00

Throwing unification

This commit is contained in:
Ombridride 2014-12-23 22:08:04 +01:00
parent c3be3dd058
commit ea59709133

View File

@ -38,7 +38,7 @@ minetest.register_tool("throwing:bow_wood", {
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if throwing_shoot_arrow(itemstack, user, pointed_thing) then if throwing_shoot_arrow(itemstack, user, pointed_thing) then
if not minetest.setting_getbool("creative_mode") then if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/30) itemstack:add_wear(65535/25)
end end
end end
return itemstack return itemstack
@ -62,7 +62,7 @@ minetest.register_tool("throwing:bow_stone", {
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if throwing_shoot_arrow(item, user, pointed_thing) then if throwing_shoot_arrow(item, user, pointed_thing) then
if not minetest.setting_getbool("creative_mode") then if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/90) itemstack:add_wear(65535/75)
end end
end end
return itemstack return itemstack
@ -111,7 +111,7 @@ minetest.register_tool("throwing:bow_bronze", {
on_use = function(itemstack, user, pointed_thing) on_use = function(itemstack, user, pointed_thing)
if throwing_shoot_arrow(item, user, pointed_thing) then if throwing_shoot_arrow(item, user, pointed_thing) then
if not minetest.setting_getbool("creative_mode") then if not minetest.setting_getbool("creative_mode") then
itemstack:add_wear(65535/220) itemstack:add_wear(65535/250)
end end
end end
return itemstack return itemstack