Unique naming of jeweled tools
This commit is contained in:
parent
02d4b278db
commit
c7e16a681f
@ -6,190 +6,223 @@ local S = minetest.get_translator("jewels")
|
||||
|
||||
-- Automatic jeweling on specific tools
|
||||
|
||||
-- Adjectives:
|
||||
-- * Swift: lower dig speed
|
||||
-- * Harming: more damage
|
||||
-- * Durable: more uses
|
||||
-- * Ranged: higher range
|
||||
|
||||
local tool_types = {
|
||||
pick = {
|
||||
steel = {
|
||||
description = S("Jeweled Steel Pickaxe"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Steel Pickaxe"),
|
||||
digspeed = -0.1,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Steel Pickaxe"),
|
||||
fleshy = 1,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Steel Pickaxe"),
|
||||
uses = 3,
|
||||
},
|
||||
},
|
||||
carbon_steel = {
|
||||
description = S("Jeweled Carbon Steel Pickaxe"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Carbon Steel Pickaxe"),
|
||||
digspeed = -0.13,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Carbon Steel Pickaxe"),
|
||||
fleshy = 2,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Carbon Steel Pickaxe"),
|
||||
uses = 5,
|
||||
},
|
||||
},
|
||||
bronze = {
|
||||
description = S("Jeweled Bronze Pickaxe"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Bronze Pickaxe"),
|
||||
digspeed = -0.14,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Bronze Pickaxe"),
|
||||
fleshy = 3,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Bronze Pickaxe"),
|
||||
uses = 6,
|
||||
},
|
||||
},
|
||||
},
|
||||
shovel = {
|
||||
steel = {
|
||||
description = S("Jeweled Steel Shovel"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Steel Shovel"),
|
||||
digspeed = -0.1,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Steel Shovel"),
|
||||
fleshy = 1,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Steel Shovel"),
|
||||
uses = 3,
|
||||
},
|
||||
},
|
||||
carbon_steel = {
|
||||
description = S("Jeweled Carbon Steel Shovel"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Carbon Steel Shovel"),
|
||||
digspeed = -0.13,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Carbon Steel Shovel"),
|
||||
fleshy = 2,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Carbon Steel Shovel"),
|
||||
uses = 5,
|
||||
},
|
||||
},
|
||||
bronze = {
|
||||
description = S("Jeweled Bronze Shovel"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Bronze Shovel"),
|
||||
digspeed = -0.14,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Bronze Shovel"),
|
||||
fleshy = 3,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Bronze Shovel"),
|
||||
uses = 6,
|
||||
},
|
||||
},
|
||||
},
|
||||
axe = {
|
||||
steel = {
|
||||
description = S("Jeweled Steel Axe"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Steel Axe"),
|
||||
digspeed = -0.1,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Steel Axe"),
|
||||
fleshy = 2,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Steel Axe"),
|
||||
uses = 3,
|
||||
},
|
||||
},
|
||||
carbon_steel = {
|
||||
description = S("Jeweled Carbon Steel Axe"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Carbon Steel Axe"),
|
||||
digspeed = -0.13,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Carbon Steel Axe"),
|
||||
fleshy = 3,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Carbon Steel Axe"),
|
||||
uses = 5,
|
||||
},
|
||||
},
|
||||
bronze = {
|
||||
description = S("Jeweled Bronze Axe"),
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Bronze Axe"),
|
||||
digspeed = -0.14,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Bronze Axe"),
|
||||
fleshy = 4,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Bronze Axe"),
|
||||
uses = 6,
|
||||
},
|
||||
},
|
||||
},
|
||||
spear = {
|
||||
steel = {
|
||||
description = S("Jeweled Steel Spear"),
|
||||
overlay_wield = "jewels_jeweled_handle.png^[transformR90",
|
||||
reach = {
|
||||
description = S("Ranged Jewel Steel Spear"),
|
||||
range = 1,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Steel Spear"),
|
||||
fleshy = 3,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Steel Spear"),
|
||||
uses = 3,
|
||||
},
|
||||
},
|
||||
carbon_steel = {
|
||||
description = S("Jeweled Carbon Steel Spear"),
|
||||
overlay_wield = "jewels_jeweled_handle.png^[transformR90",
|
||||
reach = {
|
||||
description = S("Ranged Jewel Carbon Steel Spear"),
|
||||
range = 2,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Carbon Steel Spear"),
|
||||
fleshy = 4,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Carbon Steel Spear"),
|
||||
uses = 5,
|
||||
},
|
||||
},
|
||||
bronze = {
|
||||
description = S("Jeweled Bronze Spear"),
|
||||
overlay_wield = "jewels_jeweled_handle.png^[transformR90",
|
||||
reach = {
|
||||
description = S("Ranged Jewel Bronze Spear"),
|
||||
range = 2,
|
||||
},
|
||||
damage = {
|
||||
description = S("Harming Jewel Bronze Spear"),
|
||||
fleshy = 5,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Bronze Spear"),
|
||||
uses = 6,
|
||||
},
|
||||
},
|
||||
},
|
||||
shears = {
|
||||
steel = {
|
||||
description = S("Jeweled Steel Shears"),
|
||||
overlay_wield = "jewels_jeweled_handle.png^[transformR90",
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Steel Shears"),
|
||||
digspeed = -0.1,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Steel Shears"),
|
||||
uses = 3,
|
||||
},
|
||||
},
|
||||
carbon_steel = {
|
||||
description = S("Jeweled Carbon Steel Shears"),
|
||||
overlay_wield = "jewels_jeweled_handle.png^[transformR90",
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Carbon Steel Shears"),
|
||||
digspeed = -0.13,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Carbon Steel Shears"),
|
||||
uses = 5,
|
||||
},
|
||||
},
|
||||
bronze = {
|
||||
description = S("Jeweled Bronze Shears"),
|
||||
overlay_wield = "jewels_jeweled_handle.png^[transformR90",
|
||||
digspeed = {
|
||||
description = S("Swift Jewel Bronze Shears"),
|
||||
digspeed = -0.14,
|
||||
},
|
||||
uses = {
|
||||
description = S("Durable Jewel Bronze Shears"),
|
||||
uses = 6,
|
||||
},
|
||||
},
|
||||
@ -199,13 +232,13 @@ local tool_types = {
|
||||
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
|
||||
if jewel_name ~= "description" then
|
||||
if jewel_name ~= "description" and jewel_name ~= "overlay_wield" then
|
||||
jewels.register_jewel(
|
||||
"default:" .. tool_name .. "_" .. material_name,
|
||||
"jewels:" .. tool_name .. "_" .. material_name .. "_" .. jewel_name,
|
||||
{
|
||||
stats = jewel_def,
|
||||
description = material_def.description,
|
||||
description = jewel_def.description,
|
||||
overlay_wield = material_def.overlay_wield,
|
||||
}
|
||||
)
|
||||
@ -220,7 +253,7 @@ jewels.register_jewel(
|
||||
"default:broadsword",
|
||||
"jewels:broadsword_jeweled_pommel",
|
||||
{
|
||||
description = S("Jeweled Pommel Broadsword"),
|
||||
description = S("Pommel Jewel Broadsword"),
|
||||
overlay = "jewels_jeweled_pommel.png",
|
||||
stats = {
|
||||
fleshy = 2,
|
||||
@ -231,7 +264,7 @@ jewels.register_jewel(
|
||||
"jewels:broadsword_jeweled_pommel",
|
||||
"jewels:broadsword_jeweled_pommel_and_guard",
|
||||
{
|
||||
description = S("Jeweled Pommel&Guard Broadsword"),
|
||||
description = S("Pommel&Guard Jewel Broadsword"),
|
||||
overlay = "jewels_jeweled_guard.png",
|
||||
stats = {
|
||||
range = 1,
|
||||
@ -242,7 +275,7 @@ jewels.register_jewel(
|
||||
"jewels:broadsword_jeweled_pommel_and_guard",
|
||||
"jewels:serrated_broadsword",
|
||||
{
|
||||
description = S("Jeweled Serrated Broadsword"),
|
||||
description = S("Serrated Jewel Broadsword"),
|
||||
overlay = "jewels_jeweled_blade.png",
|
||||
stats = {
|
||||
fleshy = 2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user