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

Fix moreores tools damage

This commit is contained in:
Ombridride 2015-03-21 16:25:09 +01:00
parent 999b554fe6
commit 1b127302f4

View File

@ -182,26 +182,26 @@ local function add_ore(modname, description, mineral_name, oredef)
}
if tool_name == "sword" then
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.full_punch_interval = oredef.full_punch_interval
tdef.damage_groups = oredef.damage_group
tdef.description = S("%s Sword"):format(S(description))
end
if tool_name == "pick" then
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.full_punch_interval = oredef.full_punch_interval
tdef.damage_groups = oredef.damage_group
tdef.description = S("%s Pickaxe"):format(S(description))
end
if tool_name == "axe" then
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.full_punch_interval = oredef.full_punch_interval
tdef.damage_groups = oredef.damage_group
tdef.description = S("%s Axe"):format(S(description))
end
if tool_name == "shovel" then
tdef.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.damage_groups = oredef.damage_group
tdef.description = S("%s Shovel"):format(S(description))
end