Module:Inventory slot/Aliases: Difference between revisions

mNo edit summary
No edit summary
Line 983: Line 983:


-- Smithing Template
-- Smithing Template
local smithing_templates = {
{ 'Netherite Upgrade', '',      'Diamond Equipment', 'Netherite Ignot'  },
{ 'Armor Trim',        'Coast',  'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Dune',  'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Eye',    'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Rib',    'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Sentry', 'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Snout',  'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Spire',  'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Tide',  'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Vex',    'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Ward',  'Armor',            'Ignot & Crystals' },
{ 'Armor Trim',        'Wild',  'Armor',            'Ignot & Crystals' },
}
local smithing_template_array = {}
for _,smithing_template in pairs(smithing_templates) do
local current_alias = {
title = 'Smithing Template',
name = smithing_template[2] .. ' ' .. smithing_template[1] .. 'Smithing Template',
text = '&9Ingredients/&7' .. smithing_template[2] .. ' ' .. smithing_template[1] .. '//Applies to:/ &9' .. smithing_template[3] .. '/&7Ingredients:/ &9' .. smithing_template[4],
}
aliases[smithing_template[2] .. ' ' .. smithing_template[1]] = current_alias
end
aliases['Matching Smithing Template'] = {
aliases['Matching Smithing Template'] = {
{ title = 'Smithing Template', name = 'Netherite Upgrade Smithing Template', text = '&9Ingredients/&7Netherite Upgrade//Applies to:/ &9Diamond Equipment/&7Ingredients:/ &9Netherite Ignot' },
{ title = 'Smithing Template', name = 'Netherite Upgrade Smithing Template', text = '&9Ingredients/&7Netherite Upgrade//Applies to:/ &9Diamond Equipment/&7Ingredients:/ &9Netherite Ignot' },