summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Qian <richwiki101@gmail.com>2016-12-14 08:56:17 -0600
committerAuke Kok <sofar+github@foo-projects.org>2016-12-31 12:35:09 -0800
commit1e2dcc6fd6d748d269245eb291b955b2022887af (patch)
tree70f12fd397dbf0194441252bc5cf9703cd61a468
parent560e5becc5f2e3b9b0448c8d5b8191d1d34edb82 (diff)
Add sounds and rotate wield images for shovels
-rw-r--r--init.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/init.lua b/init.lua
index 72bd0a1..83d45f6 100644
--- a/init.lua
+++ b/init.lua
@@ -177,7 +177,8 @@ local function add_ore(modname, description, mineral_name, oredef)
tool_capabilities = {
max_drop_level = 3,
groupcaps = tooldef
- }
+ },
+ sound = {breaks = "default_tool_breaks"},
}
if tool_name == "sword" then
@@ -202,6 +203,7 @@ local function add_ore(modname, description, mineral_name, oredef)
tdef.full_punch_interval = oredef.full_punch_interval
tdef.tool_capabilities.damage_groups = oredef.damage_groups
tdef.description = S("%s Shovel"):format(S(description))
+ tdef.wield_image = toolimg_base .. tool_name .. ".png^[transformR90"
end
if tool_name == "hoe" then