1
0
mirror of https://github.com/sys4-fr/server-nalc.git synced 2024-09-29 07:50:35 +02:00

Re-organize the code of tools.lua

Wood > Steel > Bronze > Gold > Mese > Nyan > Diamond
This commit is contained in:
Ombridride 2015-06-02 22:44:58 +02:00
parent a5b3799409
commit 8970de6604

View File

@ -193,15 +193,15 @@ minetest.register_tool("default:shovel_gold", {
damage_groups = {fleshy = 4}, damage_groups = {fleshy = 4},
}, },
}) })
minetest.register_tool("default:shovel_diamond", { minetest.register_tool("default:shovel_mese", {
description = "Diamond Shovel", description = "Mese Shovel",
inventory_image = "default_tool_diamondshovel.png", inventory_image = "default_tool_meseshovel.png",
wield_image = "default_tool_diamondshovel.png^[transformR90", wield_image = "default_tool_meseshovel.png^[transformR90",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.2, full_punch_interval = 0.9,
max_drop_level = 1, max_drop_level = 3,
groupcaps = { groupcaps = {
crumbly = {times = {[1] = 1.65, [2] = 0.6, [3] = 0.32}, uses = 25, maxlevel = 3}, crumbly = {times = {[1] = 1.25, [2] = 0.45, [3] = 0.26}, uses = 15, maxlevel = 3},
}, },
damage_groups = {fleshy = 4}, damage_groups = {fleshy = 4},
}, },
@ -219,15 +219,15 @@ minetest.register_tool("default:shovel_nyan", {
damage_groups = {fleshy = 4}, damage_groups = {fleshy = 4},
}, },
}) })
minetest.register_tool("default:shovel_mese", { minetest.register_tool("default:shovel_diamond", {
description = "Mese Shovel", description = "Diamond Shovel",
inventory_image = "default_tool_meseshovel.png", inventory_image = "default_tool_diamondshovel.png",
wield_image = "default_tool_meseshovel.png^[transformR90", wield_image = "default_tool_diamondshovel.png^[transformR90",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.9, full_punch_interval = 1.2,
max_drop_level = 3, max_drop_level = 1,
groupcaps = { groupcaps = {
crumbly = {times = {[1] = 1.25, [2] = 0.45, [3] = 0.26}, uses = 15, maxlevel = 3}, crumbly = {times = {[1] = 1.65, [2] = 0.6, [3] = 0.32}, uses = 25, maxlevel = 3},
}, },
damage_groups = {fleshy = 4}, damage_groups = {fleshy = 4},
}, },
@ -302,15 +302,15 @@ minetest.register_tool("default:axe_gold", {
damage_groups = {fleshy = 6}, damage_groups = {fleshy = 6},
}, },
}) })
minetest.register_tool("default:axe_diamond", { minetest.register_tool("default:axe_mese", {
description = "Diamond Axe", description = "Mese Axe",
inventory_image = "default_tool_diamondaxe.png", inventory_image = "default_tool_meseaxe.png",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 1.2, full_punch_interval = 0.9,
max_drop_level = 1, max_drop_level = 1,
groupcaps = { groupcaps = {
choppy = {times = {[1] = 2.2, [2] = 1.0, [3] = 0.55}, uses = 25, maxlevel = 3}, choppy = {times = {[1] = 1.5, [2] = 0.75, [3] = 0.4}, uses = 15, maxlevel = 3},
snappy = {times = {[3] = 0.125}, uses = 0, maxlevel = 1}, snappy = {times = {[3] = 0.1}, uses = 0, maxlevel = 1},
}, },
damage_groups = {fleshy = 6}, damage_groups = {fleshy = 6},
}, },
@ -328,15 +328,15 @@ minetest.register_tool("default:axe_nyan", {
damage_groups = {fleshy = 6}, damage_groups = {fleshy = 6},
}, },
}) })
minetest.register_tool("default:axe_mese", { minetest.register_tool("default:axe_diamond", {
description = "Mese Axe", description = "Diamond Axe",
inventory_image = "default_tool_meseaxe.png", inventory_image = "default_tool_diamondaxe.png",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.9, full_punch_interval = 1.2,
max_drop_level = 1, max_drop_level = 1,
groupcaps = { groupcaps = {
choppy = {times = {[1] = 1.5, [2] = 0.75, [3] = 0.4}, uses = 15, maxlevel = 3}, choppy = {times = {[1] = 2.2, [2] = 1.0, [3] = 0.55}, uses = 25, maxlevel = 3},
snappy = {times = {[3] = 0.1}, uses = 0, maxlevel = 1}, snappy = {times = {[3] = 0.125}, uses = 0, maxlevel = 1},
}, },
damage_groups = {fleshy = 6}, damage_groups = {fleshy = 6},
}, },
@ -406,16 +406,16 @@ minetest.register_tool("default:sword_gold", {
damage_groups = {fleshy = 5}, damage_groups = {fleshy = 5},
} }
}) })
minetest.register_tool("default:sword_diamond", { minetest.register_tool("default:sword_mese", {
description = "Diamond Sword", description = "Mese Sword",
inventory_image = "default_tool_diamondsword.png", inventory_image = "default_tool_mesesword.png",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.6, full_punch_interval = 0.7,
max_drop_level = 1, max_drop_level = 1,
groupcaps = { groupcaps = {
snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 30, maxlevel = 3}, snappy = {times = {[1] = 1.5, [2] = 0.7, [3] = 0.1}, uses = 20, maxlevel = 3},
}, },
damage_groups = {fleshy = 7}, damage_groups = {fleshy = 6},
} }
}) })
minetest.register_tool("default:sword_nyan", { minetest.register_tool("default:sword_nyan", {
@ -430,15 +430,15 @@ minetest.register_tool("default:sword_nyan", {
damage_groups = {fleshy = 6}, damage_groups = {fleshy = 6},
} }
}) })
minetest.register_tool("default:sword_mese", { minetest.register_tool("default:sword_diamond", {
description = "Mese Sword", description = "Diamond Sword",
inventory_image = "default_tool_mesesword.png", inventory_image = "default_tool_diamondsword.png",
tool_capabilities = { tool_capabilities = {
full_punch_interval = 0.7, full_punch_interval = 0.6,
max_drop_level = 1, max_drop_level = 1,
groupcaps = { groupcaps = {
snappy = {times = {[1] = 1.5, [2] = 0.7, [3] = 0.1}, uses = 20, maxlevel = 3}, snappy = {times = {[1] = 1.9, [2] = 0.85, [3] = 0.125}, uses = 30, maxlevel = 3},
}, },
damage_groups = {fleshy = 6}, damage_groups = {fleshy = 7},
} }
}) })