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:
parent
999b554fe6
commit
1b127302f4
|
@ -182,26 +182,26 @@ local function add_ore(modname, description, mineral_name, oredef)
|
||||||
}
|
}
|
||||||
|
|
||||||
if tool_name == "sword" then
|
if tool_name == "sword" then
|
||||||
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
|
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 Sword"):format(S(description))
|
tdef.description = S("%s Sword"):format(S(description))
|
||||||
end
|
end
|
||||||
|
|
||||||
if tool_name == "pick" then
|
if tool_name == "pick" then
|
||||||
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
|
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 Pickaxe"):format(S(description))
|
tdef.description = S("%s Pickaxe"):format(S(description))
|
||||||
end
|
end
|
||||||
|
|
||||||
if tool_name == "axe" then
|
if tool_name == "axe" then
|
||||||
tdef.tool_capabilities.full_punch_interval = oredef.full_punch_interval
|
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 Axe"):format(S(description))
|
tdef.description = S("%s Axe"):format(S(description))
|
||||||
end
|
end
|
||||||
|
|
||||||
if tool_name == "shovel" then
|
if tool_name == "shovel" then
|
||||||
tdef.full_punch_interval = oredef.full_punch_interval
|
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))
|
tdef.description = S("%s Shovel"):format(S(description))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user