Module:Skill calc/Smithing/data

From RuneScape Classic Wiki
Jump to: navigation, search

Documentation for this module may be created at Module:Skill calc/Smithing/data/doc

--[=[
     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.25,
                material = {1, "Copper ore", 1, "Tin ore"},
                mcount = 2
            },
            {
                name = "Iron bar",
                level = 15,
                xp = 12.5,
                material = {1, "Iron ore"}
            },
            {
                name = "Silver bar",
                level = 20,
                xp = 13.75,
                material = {1, "Silver"}
            },
            {
                name = "Steel bar",
                level = 30,
                xp = 17.5,
                material = {1, "Iron ore", 2, "Coal"},
                mcount = 2
            },
            {
            	name = "Multi cannon ball",
            	level = 30,
            	xp = 25,
            	material = {1, "Steel bar"}
            },
            {
                name = "Gold bar",
                level = 40,
                xp = 22.5,
                material = {1, "Gold"}
            },
            {
                title = "Gold bar + Gauntlets",
                name = "Gold bar",
                level = 40,
                xp = 33.75,
                material = {1, "Gold"},
                members = 0
            },
            {
                name = "Gold bar (Family Crest)",
                level = 40,
                xp = 22.5,
                material = {1, "Gold (Family Crest)"},
                trade = 0,
                mtrade = 0,
                members = 0
            },
            {
                name = "Gold bar (Family Crest)",
                title = "Gold bar (Family Crest) + Gauntlets",
                level = 40,
                xp = 33.75,
                material = {1, "Gold (Family Crest)"},
                trade = 0,
                mtrade = 0,
                members = 0
            },
            {
                name = "Mithril bar",
                level = 50,
                xp = 30,
                material = {1, "Mithril ore", 4, "Coal"},
                mcount = 2
            },
            {
                name = "Adamantite bar",
                level = 70,
                xp = 37.5,
                material = {1, "Adamantite ore", 6, "Coal"},
                mcount = 2
            },
            {
                name = "Runite 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, "Bronze bar"},
            },
            {
                name = "Iron bar",
                level = 15,
                xp = 25,
                material = {1, "Iron bar"}
            },
            {
                name = "Steel bar",
                level = 30,
                xp = 37.5,
                material = {1, "Steel bar"},
            },
            {
                name = "Golden Bowl",
                level = 50,
                xp = 30,
                material = {1, "Gold bar"}
            },
            {
                name = "Mithril bar",
                level = 50,
                xp = 50,
                material = {1, "Mithril bar"},
            },
            {
                name = "Dragon Square Shield",
                level = 60,
                xp = 75,
                material = {1, "Gold bar", 1, "Gold bar"},
                mcount = 2
            },
            {
                name = "Adamantite bar",
                level = 70,
                xp = 62.5,
                material = {1, "Adamantite bar"},
            },
            {
                name = "Runite bar",
                level = 85,
                xp = 75,
                material = {1, "Runite bar"},
            }
        }
    	return methods
    end
end