FANDOM


--[=[
     Notations found in this Module:
        * name:     Name of product
        * icon:      Alternate image location
        * level:    Level required to complete
        * xp:       Experience gained
        * material: Materials required { #, "Item name", ...}
            - Special case for alternate currencies: {#, value, "Item name", ...}
        * mcount:   Material count - Number of materials required
            - This allows for exclusion of items not found in the GE
        * title:    Alternative name of object
            - Used to clarify the difference from a similar object or offer a cleaner name
        * mtrade:   Indicates whether the materials needed can be found in the GE
        * trade:    Indicates whether the product can be found in the GE
        * currency: Indicates an alternative currency being used
        * value:    Specifies the product's value in alternative currency
--]=]
local skillData = {}
 
return function(trainMethod)
 
    -- Smelting
    if trainMethod == "Smelting" then
        local methods = 
        {
            {   
                name = "Bronze bar",
                level = 1,
                xp = 6.2,
                material = {1, "Copper ore", 1, "Tin ore"},
                mcount = 2
            },
            {
                name = "Blurite bar",
                level = 8,
                xp = 8,
                material = {1,"Blurite ore"},
                trade = 0,
                mtrade = 0
            },
            {
                name = "Iron bar",
                level = 15,
                xp = 12.5,
                material = {1,"Iron ore"}
            },
            {
                name = "Elemental bar",
                level = 20,
                xp = 7.5,
                material = {4,"Coal", 1,"Elemental ore"},
                trade = 0,
                mcount = 1
            },
            {
                name = "Silver bar",
                level = 20,
                xp = 13.7,
                material = {1,"Silver ore"}
            },
            {
                name = "Steel bar",
                level = 30,
                xp = 17.5,
                material = {1,"Iron ore",2,"Coal"},
                mcount = 2
            },
            {
                name = "Gold bar",
                level = 40,
                xp = 22.5,
                material = {1,"Gold ore"}
            },            {
                title = "Gold bar (Gauntlets)",
                name = "Gold bar",
                level = 40,
                xp = 56.2,
                material = {1,"Gold ore"}
            },
            {
                name = "'Perfect' gold bar",
                level = 40,
                xp = 22.5,
                material = {1, "'Perfect' gold ore"},
                trade = 0,
                mtrade = 0
            },
            {
                name = "'Perfect' gold bar",
                title = "'Perfect' gold bar (Gauntlets)",
                level = 40,
                xp = 56.2,
                material = {1, "'Perfect' gold ore"},
                trade = 0,
                mtrade = 0
            },
            {
                name = "Mithril bar",
                level = 50,
                xp = 30,
                material = {1, "Mithril ore", 4, "Coal"},
                mcount = 2
            },
            {
                name = "Adamant bar",
                level = 70,
                xp = 37.5,
                material = {1,"Adamantite ore",6, "Coal"},
                mcount = 2
            },    
            {
                name = "Obsidian bar",
                level = 80,
                xp = 50,
                material = {12,"Obsidian shard"},
                trade = 0,
                mtrade = 0
            },    
            {
                name = "Rune bar",
                level = 85,
                xp = 50,
                material = {1,"Runite ore",8,"Coal"},
                mcount = 2
            }
        }
 
    return methods
    end
 
    -- Forging
    if trainMethod == "Forging" then
        local methods = 
        {
            {   
                name = "Bronze bar",
                level = 1,
                xp = 12.5,
                material = {1, "Copper ore", 1, "Tin ore"},
                mcount = 2
            },
            {
                name = "Blurite bar",
                level = 8,
                xp = 17.5,
                material = {1,"Blurite ore"},
                trade = 0,
                mtrade = 0
            },
            {
                name = "Iron bar",
                level = 15,
                xp = 25,
                material = {1,"Iron ore"}
            },
            {
                name = "Elemental bar",
                level = 20,
                xp = 20,
                material = {4, "Coal", 1,"Elemental ore"},
                trade = 0,
                mcount = 1
            },
            {
                name = "Steel bar",
                level = 30,
                xp = 37.5,
                material = {1,"Iron ore",2,"Coal"},
                mcount = 2
            },
            {
                name = "Mithril bar",
                level = 50,
                xp = 50,
                material = {1, "Mithril ore", 4, "Coal"},
                mcount = 2
            },
            {
                name = "Adamant bar",
                level = 70,
                xp = 62.5,
                material = {1,"Adamantite ore",6, "Coal"},
                mcount = 2
            },    
            {
                name = "Obsidian bar",
                level = 80,
                xp = 75,
                material = {12,"Obsidian shard"},
                trade = 0,
                mtrade = 0
            },    
            {
                name = "Rune bar",
                level = 85,
                xp = 75,
                material = {1,"Runite ore",8,"Coal"},
                mcount = 2
            }
        }
 
    return methods
    end
 
    -- Blast Furnace
    if trainMethod == "Blast Furnace" then
        local methods = 
        {
            {   
                name = "Bronze bar",
                level = 1,
                xp = 6.2,
                material = {1, "Copper ore", 1, "Tin ore"},
                mcount = 2
            },
            {
                name = "Blurite bar",
                level = 8,
                xp = 8,
                material = {1,"Blurite ore"},
                trade = 0,
                mtrade = 0
            },
            {
                name = "Iron bar",
                level = 15,
                xp = 12.5,
                material = {1,"Iron ore"}
            },
            {
                name = "Silver bar",
                level = 20,
                xp = 13.7,
                material = {1,"Silver ore"}
            },
            {
                name = "Steel bar",
                level = 30,
                xp = 17.5,
                material = {1,"Iron ore",1,"Coal"},
                mcount = 2
            },
            {
                name = "Gold bar",
                level = 40,
                xp = 22.5,
                material = {1,"Gold ore"}
            },            
            {
                title = "Gold bar (Gauntlets)",
                name = "Gold bar",
                level = 40,
                xp = 56.2,
                material = {1,"Gold ore"}
            },
            {
                name = "'Perfect' gold bar",
                level = 40,
                xp = 22.5,
                material = {1, "'Perfect' gold ore"},
                trade = 0,
                mtrade = 0
            },
            {
                name = "'Perfect' gold bar",
                title = "'Perfect' gold bar (Gauntlets)",
                level = 40,
                xp = 56.2,
                material = {1, "'Perfect' gold ore"},
                trade = 0,
                mtrade = 0
            },
            {
                name = "Mithril bar",
                level = 50,
                xp = 30,
                material = {1, "Mithril ore", 2, "Coal"},
                mcount = 2
            },
            {
                name = "Adamant bar",
                level = 70,
                xp = 37.5,
                material = {1,"Adamantite ore",3, "Coal"},
                mcount = 2
            },    
            {
                name = "Obsidian bar",
                level = 80,
                xp = 50,
                material = {12,"Obsidian shard"},
                trade = 0,
                mtrade = 0
            },    
            {
                name = "Rune bar",
                level = 85,
                xp = 50,
                material = {1,"Runite ore",4,"Coal"},
                mcount = 2
            }
        }
 
    return methods
    end
 
    -- Artisan's Workshop
    if trainMethod == "Burial armour" then
        local methods = 
        {
            {
                name        = "Iron ingot I",
                level       = 30,
                xp          = 101,
                material    = {1, "Iron ore"},
                mcount      = 1,
                trade       = 0
            },{
                name        = "Iron ingot II",
                level       = 30,
                xp          = 202,
                material    = {9, "Iron ore"},
                mcount      = 9,
                trade       = 0
            },{
                name        = "Iron ingot III",
                level       = 30,
                xp          = 240,
                material    = {12, "Iron ore"},
                mcount      = 12,
                trade       = 0
            },{
                name        = "Steel ingot I",
                level       = 45,
                xp          = 131,
                material    = {1, "Iron ore", 2, "Coal"},
                mcount      = 3,
                trade       = 0
            },{
                name        = "Steel ingot II",
                level       = 45,
                xp          = 253,
                material    = {3, "Iron ore", 7, "Coal"},
                mcount      = 10,
                trade       = 0
            },{
                name        = "Steel ingot III",
                level       = 45,
                xp          = 354,
                material    = {9, "Iron ore", 17, "Coal"},
                mcount      = 26,
                trade       = 0
            },{
                name        = "Mithril ingot I",
                level       = 60,
                xp          = 164,
                material    = {1, "Mithril ore", 4, "Coal"},
                mcount      = 5,
                trade       = 0
            },{
                name        = "Mithril ingot II",
                level       = 60,
                xp          = 316,
                material    = {3, "Mithril ore", 12, "Coal"},
                mcount      = 15,
                trade       = 0
            },{
                name        = "Mithril ingot III",
                level       = 60,
                xp          = 404,
                material    = {6, "Mithril ore", 24, "Coal"},
                mcount      = 30,
                trade       = 0
            },{
                name        = "Adamant ingot I",
                level       = 70,
                xp          = 278,
                material    = {1, "Adamantite ore", 6, "Coal"},
                mcount      = 7,
                trade       = 0
            },{
                name        = "Adamant ingot II",
                level       = 70,
                xp          = 455,
                material    = {3, "Adamantite ore", 14, "Coal"},
                mcount      = 17,
                trade       = 0
            },{
                name        = "Adamant ingot III",
                level       = 70,
                xp          = 568,
                material    = {4, "Adamantite ore", 22, "Coal"},
                mcount      = 26,
                trade       = 0
            },{
                name        = "Rune ingot I",
                level       = 90,
                xp          = 505,
                material    = {1, "Runite ore", 8, "Coal"},
                mcount      = 9,
                trade       = 0
            },{
                name        = "Rune ingot II",
                level       = 90,
                xp          = 631,
                material    = {2, "Runite ore", 16, "Coal"},
                mcount      = 18,
                trade       = 0
            },{
                name        = "Rune ingot III",
                level       = 90,
                xp          = 758,
                material    = {4, "Runite ore", 30, "Coal"},
                mcount      = 34,
                trade       = 0
            }
        }
 
    return methods
    end
 
    -- Artisan's Workshop
    if trainMethod == "Ceremonial swords" then
        local methods = 
        {
            {
                name        = "Iron ingot IV",
                level       = 70,
                xp          = 2702,
                material    = {75, "Iron ore"},
                mcount      = 75,
                trade       = 0
            },{
                name        = "Steel ingot IV",
                level       = 75,
                xp          = 3782,
                material    = {40, "Iron ore", 80, "Coal"},
                mcount      = 120,
                trade       = 0
            },{
                name        = "Mithril ingot IV",
                level       = 80,
                xp          = 4539,
                material    = {30, "Mithril ore", 120, "Coal"},
                mcount      = 150,
                trade       = 0
            },{
                name        = "Adamant ingot IV",
                level       = 85,
                xp          = 5728,
                material    = {85, "Adamantite ore", 150, "Coal"},
                mcount      = 175,
                trade       = 0
            },{
                name        = "Rune ingot IV",
                level       = 90,
                xp          = 10486,
                material    = {18, "Runite ore", 144, "Coal"},
                mcount      = 162,
                trade       = 0
            }
        }
 
    return methods
    end
 
end