2015-09-02 17:53:42 +02:00
|
|
|
--
|
|
|
|
-- Jeweled tool defs
|
|
|
|
--
|
|
|
|
|
2019-08-28 17:31:41 +02:00
|
|
|
local S = minetest.get_translator("jewels")
|
|
|
|
|
2017-05-18 19:38:17 +02:00
|
|
|
-- Automatic jeweling on specific tools
|
|
|
|
|
|
|
|
local tool_types = {
|
|
|
|
pick = {
|
|
|
|
steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Steel Pickaxe"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.1,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 1,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
carbon_steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Carbon Steel Pickaxe"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.13,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 2,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
bronze = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Bronze Pickaxe"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.14,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 3,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 6,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
shovel = {
|
|
|
|
steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Steel Shovel"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.1,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 1,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
carbon_steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Carbon Steel Shovel"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.13,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 2,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
bronze = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Bronze Shovel"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.14,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 3,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 6,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
axe = {
|
|
|
|
steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Steel Axe"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.1,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 2,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
carbon_steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Carbon Steel Axe"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.13,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 3,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
bronze = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Bronze Axe"),
|
2017-05-18 19:38:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.14,
|
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 4,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 6,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
spear = {
|
|
|
|
steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Steel Spear"),
|
2017-05-18 19:38:17 +02:00
|
|
|
reach = {
|
2019-09-21 23:39:31 +02:00
|
|
|
range = 1,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 3,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
carbon_steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Carbon Steel Spear"),
|
2017-05-18 19:38:17 +02:00
|
|
|
reach = {
|
2019-09-21 23:39:31 +02:00
|
|
|
range = 2,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 4,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
bronze = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Bronze Spear"),
|
2017-05-18 19:38:17 +02:00
|
|
|
reach = {
|
2019-09-21 23:39:31 +02:00
|
|
|
range = 2,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
damage = {
|
2017-05-18 19:40:40 +02:00
|
|
|
fleshy = 5,
|
2017-05-18 19:38:17 +02:00
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 6,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
2019-09-24 04:06:17 +02:00
|
|
|
shears = {
|
|
|
|
steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Steel Shears"),
|
2019-09-24 04:06:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.1,
|
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 3,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
carbon_steel = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Carbon Steel Shears"),
|
2019-09-24 04:06:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.13,
|
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 5,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
bronze = {
|
2019-10-24 13:40:10 +02:00
|
|
|
description = S("Jeweled Bronze Shears"),
|
2019-09-24 04:06:17 +02:00
|
|
|
digspeed = {
|
|
|
|
digspeed = -0.14,
|
|
|
|
},
|
|
|
|
uses = {
|
|
|
|
uses = 6,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
}
|
2017-05-18 19:38:17 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
for tool_name, tool_def in pairs(tool_types) do
|
|
|
|
for material_name, material_def in pairs(tool_def) do
|
|
|
|
for jewel_name, jewel_def in pairs(material_def) do
|
2019-10-24 13:40:10 +02:00
|
|
|
if jewel_name ~= "description" then
|
|
|
|
jewels.register_jewel(
|
|
|
|
"default:" .. tool_name .. "_" .. material_name,
|
|
|
|
"jewels:" .. tool_name .. "_" .. material_name .. "_" .. jewel_name,
|
|
|
|
{
|
|
|
|
stats = jewel_def,
|
|
|
|
description = material_def.description,
|
|
|
|
}
|
|
|
|
)
|
|
|
|
end
|
2017-05-18 19:38:17 +02:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2015-09-02 17:53:42 +02:00
|
|
|
|
2015-10-19 20:46:45 +02:00
|
|
|
-- Broadswords
|
|
|
|
|
|
|
|
jewels.register_jewel(
|
|
|
|
"default:broadsword",
|
|
|
|
"jewels:broadsword_jeweled_pommel",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Jeweled Pommel Broadsword"),
|
2015-10-19 20:46:45 +02:00
|
|
|
overlay = "jewels_jeweled_pommel.png",
|
|
|
|
stats = {
|
|
|
|
fleshy = 2,
|
|
|
|
}
|
2017-05-18 19:38:17 +02:00
|
|
|
})
|
2015-10-19 20:46:45 +02:00
|
|
|
|
|
|
|
jewels.register_jewel(
|
|
|
|
"jewels:broadsword_jeweled_pommel",
|
|
|
|
"jewels:broadsword_jeweled_pommel_and_guard",
|
|
|
|
{
|
2019-08-28 17:31:41 +02:00
|
|
|
description = S("Jeweled Pommel&Guard Broadsword"),
|
2015-10-19 20:46:45 +02:00
|
|
|
overlay = "jewels_jeweled_guard.png",
|
|
|
|
stats = {
|
|
|
|
range = 1,
|
|
|
|
}
|
2017-05-18 19:38:17 +02:00
|
|
|
})
|
2015-10-19 20:46:45 +02:00
|
|
|
|
|
|
|
jewels.register_jewel(
|
|
|
|
"jewels:broadsword_jeweled_pommel_and_guard",
|
|
|
|
"jewels:serrated_broadsword",
|
|
|
|
{
|
2019-10-24 22:09:11 +02:00
|
|
|
description = S("Jeweled Serrated Broadsword"),
|
2015-10-19 20:46:45 +02:00
|
|
|
overlay = "jewels_jeweled_blade.png",
|
|
|
|
stats = {
|
|
|
|
fleshy = 2,
|
|
|
|
range = 1,
|
|
|
|
}
|
2017-05-18 19:38:17 +02:00
|
|
|
})
|
2015-10-19 20:46:45 +02:00
|
|
|
|
2017-05-16 19:47:12 +02:00
|
|
|
default.log("jewels", "loaded")
|