added broadsword and jeweling for it

This commit is contained in:
kaadmy 2015-10-19 11:46:45 -07:00
parent 87265d7165
commit 53a970f874
11 changed files with 55 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 452 B

Binary file not shown.

View File

@ -333,6 +333,20 @@ minetest.register_tool(
}
})
-- Broadsword
minetest.register_tool(
"default:broadsword",
{
description = "Broadsword",
inventory_image = "default_broadsword.png",
wield_image = "default_broadsword.png",
wield_scale = {x = 2.0, y = 2.0, z = 1.0},
tool_capabilities = {
full_punch_interval = 4.0,
damage_groups = {fleshy = 14}
}
})
-- Other
minetest.register_tool(
"default:shears",

View File

@ -17,6 +17,7 @@ function jewels.register_jewel(toolname, new_toolname, def)
local data = {
name = new_toolname, -- the new name of the tool
overlay = def.overlay or "jewels_jeweled_handle.png", -- overlay image
description = def.description or nil,
stats = {
digspeed = def.stats.digspeed, -- negative digs faster
maxlevel = def.stats.maxlevel, -- positive digs higher levels
@ -49,6 +50,10 @@ function jewels.register_jewel(toolname, new_toolname, def)
desc = "Jeweled " .. desc
if data.description ~= nil then
desc = data.description
end
new_tooldef.inventory_image = new_tool_invimage
new_tooldef.wield_image = new_tool_wieldimage

View File

@ -330,4 +330,40 @@ jewels.register_jewel(
}
})
-- Broadswords
jewels.register_jewel(
"default:broadsword",
"jewels:broadsword_jeweled_pommel",
{
description = "Jeweled Pommel Broadsword",
overlay = "jewels_jeweled_pommel.png",
stats = {
fleshy = 2,
}
})
jewels.register_jewel(
"jewels:broadsword_jeweled_pommel",
"jewels:broadsword_jeweled_pommel_and_guard",
{
description = "Jeweled Pommel&Guard Broadsword",
overlay = "jewels_jeweled_guard.png",
stats = {
range = 1,
}
})
jewels.register_jewel(
"jewels:broadsword_jeweled_pommel_and_guard",
"jewels:serrated_broadsword",
{
description = "Serrated Broadsword",
overlay = "jewels_jeweled_blade.png",
stats = {
fleshy = 2,
range = 1,
}
})
default.log("jewels", "loaded")

Binary file not shown.

After

Width:  |  Height:  |  Size: 191 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 182 B

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 192 B

Binary file not shown.