1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-12-25 02:00:37 +01:00

Continue the pole_perfect code

This commit is contained in:
Ombridride 2015-03-11 16:49:42 +01:00
parent 3a96e2e34a
commit 42ed838804

View File

@ -125,7 +125,7 @@ minetest.register_tool("fishing:pole", {
end, end,
}) })
--Canne à pêche normal --Canne à pêche parfaite
minetest.register_tool("fishing:pole_perfect", { minetest.register_tool("fishing:pole_perfect", {
description = S("Perfect Fishing Pole"), description = S("Perfect Fishing Pole"),
@ -155,7 +155,7 @@ minetest.register_tool("fishing:pole_perfect", {
and not minetest.setting_getbool("creative_mode") then and not minetest.setting_getbool("creative_mode") then
return rod_wear(itemstack, user, pointed_thing, 30) return rod_wear(itemstack, user, pointed_thing, 30)
else else
return {name="fishing:pole", count=1, wear=0, metadata=""} return {name="fishing:pole_perfect", count=1, wear=0, metadata=""}
end end
end end
if inv:get_stack("main", user:get_wield_index()+1):get_name() == "fishing:fish_raw" then if inv:get_stack("main", user:get_wield_index()+1):get_name() == "fishing:fish_raw" then
@ -172,7 +172,7 @@ minetest.register_tool("fishing:pole_perfect", {
and not minetest.setting_getbool("creative_mode") then and not minetest.setting_getbool("creative_mode") then
return rod_wear(itemstack, user, pointed_thing, 30) return rod_wear(itemstack, user, pointed_thing, 30)
else else
return {name="fishing:pole", count=1, wear=0, metadata=""} return {name="fishing:pole_perfect", count=1, wear=0, metadata=""}
end end
end end
end end