Add proper short_description to enchanted tools
This commit is contained in:
parent
b4b04c4330
commit
bfc0637c82
@ -51,7 +51,8 @@ Bronze=
|
|||||||
Diamond=
|
Diamond=
|
||||||
Durability=
|
Durability=
|
||||||
Efficiency=
|
Efficiency=
|
||||||
Enchanted @1 @2 @3=
|
Enchanted @1 @2=
|
||||||
|
Enchanted @1 @2@n@3=
|
||||||
Enchantment Table=
|
Enchantment Table=
|
||||||
Mese=
|
Mese=
|
||||||
Pickaxe=
|
Pickaxe=
|
||||||
|
@ -49,7 +49,8 @@ Bronze=Bronze
|
|||||||
Diamond=Diamant
|
Diamond=Diamant
|
||||||
Durability=Haltbarkeit
|
Durability=Haltbarkeit
|
||||||
Efficiency=Effizienz
|
Efficiency=Effizienz
|
||||||
Enchanted @1 @2 @3=verzauberte(s) @1@2 @3
|
Enchanted @1 @2=@1@2 (verzaubert)
|
||||||
|
Enchanted @1 @2@n@3=@1@2 (verzaubert)@n@3
|
||||||
Enchantment Table=Zaubertisch
|
Enchantment Table=Zaubertisch
|
||||||
Mese=Mese
|
Mese=Mese
|
||||||
Pickaxe=spitzhacke
|
Pickaxe=spitzhacke
|
||||||
|
@ -51,7 +51,8 @@ Bronze=Bronze
|
|||||||
Diamond=Diamant
|
Diamond=Diamant
|
||||||
Durability=Durabilité
|
Durability=Durabilité
|
||||||
Efficiency=Efficacité
|
Efficiency=Efficacité
|
||||||
Enchanted @1 @2 @3=@2 en @1 enchantée @3
|
Enchanted @1 @2=@2 en @1 enchantée
|
||||||
|
Enchanted @1 @2@n@3=@2 en @1 enchantée@n@3
|
||||||
Enchantment Table=Table d’enchantements
|
Enchantment Table=Table d’enchantements
|
||||||
Mese=Mese
|
Mese=Mese
|
||||||
Pickaxe=Pioche
|
Pickaxe=Pioche
|
||||||
|
@ -51,7 +51,8 @@ Bronze=Bronzo
|
|||||||
Diamond=Diamante
|
Diamond=Diamante
|
||||||
Durability=Durabilità
|
Durability=Durabilità
|
||||||
Efficiency=Efficacia
|
Efficiency=Efficacia
|
||||||
Enchanted @1 @2 @3=@2 su @1 incantesimo @3
|
Enchanted @1 @2=@2 su @1 incantesimo
|
||||||
|
Enchanted @1 @2@n@3=@2 su @1 incantesimo@n@3
|
||||||
Enchantment Table=Tavolo per migliorie
|
Enchantment Table=Tavolo per migliorie
|
||||||
Mese=Mese
|
Mese=Mese
|
||||||
Pickaxe=Piccone
|
Pickaxe=Piccone
|
||||||
|
@ -53,8 +53,8 @@ function enchanting:get_tooltip(enchant, orig_caps, fleshy)
|
|||||||
}
|
}
|
||||||
|
|
||||||
return minetest.colorize and minetest.colorize(specs[enchant][1],
|
return minetest.colorize and minetest.colorize(specs[enchant][1],
|
||||||
"\n" .. enchant_loc[enchant] .. specs[enchant][2]) or
|
enchant_loc[enchant] .. specs[enchant][2]) or
|
||||||
"\n" .. enchant_loc[enchant] .. specs[enchant][2]
|
enchant_loc[enchant] .. specs[enchant][2]
|
||||||
end
|
end
|
||||||
|
|
||||||
local enchant_buttons = {
|
local enchant_buttons = {
|
||||||
@ -295,10 +295,12 @@ function enchanting:register_tools(mod, def)
|
|||||||
fleshy = fleshy + enchanting.damages
|
fleshy = fleshy + enchanting.damages
|
||||||
end
|
end
|
||||||
|
|
||||||
|
local arg1 = def.material_desc[material] or cap(material)
|
||||||
|
local arg2 = def.tools[tool].desc or cap(tool)
|
||||||
|
local arg3 = self:get_tooltip(enchant, original_groupcaps[group], fleshy)
|
||||||
minetest.register_tool(":" .. mod .. ":enchanted_" .. tool .. "_" .. material .. "_" .. enchant, {
|
minetest.register_tool(":" .. mod .. ":enchanted_" .. tool .. "_" .. material .. "_" .. enchant, {
|
||||||
description = S("Enchanted @1 @2 @3",
|
description = S("Enchanted @1 @2\n@3", arg1, arg2, arg3),
|
||||||
def.material_desc[material] or cap(material), def.tools[tool].desc or cap(tool),
|
short_description = S("Enchanted @1 @2", arg1, arg2),
|
||||||
self:get_tooltip(enchant, original_groupcaps[group], fleshy)),
|
|
||||||
inventory_image = original_tool.inventory_image .. "^[colorize:violet:50",
|
inventory_image = original_tool.inventory_image .. "^[colorize:violet:50",
|
||||||
wield_image = original_tool.wield_image,
|
wield_image = original_tool.wield_image,
|
||||||
groups = {not_in_creative_inventory = 1},
|
groups = {not_in_creative_inventory = 1},
|
||||||
|
Loading…
Reference in New Issue
Block a user