Module:Sandbox/User:Suity/msdata

From the RuneScape Wiki, the wiki for all things RuneScape
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Template:Module sandbox/doc. [edit] [history] [purge]
Module:Sandbox/User:Suity/msdata requires Module:ExchangeLite.
Module:Sandbox/User:Suity/msdata is loaded by Module:Sandbox/User:Suity/MasterworkCalc.
Module:Sandbox/User:Suity/msdata is loaded by Module:Sandbox/User:Suity/MiningCalc.
Module:Sandbox/User:Suity/msdata is loaded by Module:Sandbox/User:Suity/SmeltingCalc.
Module:Sandbox/User:Suity/msdata is loaded by Module:Sandbox/User:Suity/SmithingCalc.
Module:Sandbox/User:Suity/msdata is loaded by Module:Sandbox/User:Suity/mstables.

This module is a sandbox for Suity. It can be used to test changes to existing modules, prototype new modules, or just experimenting with lua features.

Invocations of this sandbox should be kept in userspace; if the module is intended for use in other namespaces, it should be moved out of the sandbox into a normal module and template.

This default documentation can be overridden by creating the /doc subpage of this module, as normal.

local gemw = require('Module:ExchangeLite')
local p = {}

--Mining variables

p.rck_freq      = 34                                -- Average ticks between rockertunities
p.rck_penalty   = 3                                 -- Ticks wasted running between rocks
p.rck_hr        = 6000/p.rck_freq                   -- Amount of rockertunities per hour
p.base_xp       = 0.4                               -- Base XP modifier
p.swing         = 4                                 -- Ticks per swing
p.swing_hr      = 6000/p.swing                      -- Swings per hour
p.rck_loss      = p.rck_penalty / p.swing           -- Average swings missed running to a rck
p.trah_bonus    = 0.2                               -- Bonus double ore chance during Trah hour
p.stamina_loss	= 10								-- Stamina lost per swing
p.metamorphic	= 0.01								-- Base chance for an igneous geode turning into a metamorphic geode
p.crit_chance_base = 0.1							-- Base critical hit chance
p.crit_chances = {0.2, 0.3}							-- Critical hit chance once it increases
p.rockertunity_mult_base = 4						-- Base rockertunity multiplier
p.rockertunity_mult = {5,6}							-- Rockertunity multiplier once it increases
p.crit_bonus_level = {1,3,9,11,17,22,24,32,34,43,44,52,59,61,65,74,79,84,87,99}	-- The levels at which the crit bonus increases
p.crit_bonus = {5,10,15,20,25,30,35,40,45,50,55,60,65,70,75,80,85,90,95,100}	-- The crit bonus corresponding to its level
p.geode_chance_base = 0.05							-- Base geode chance
p.geode_chances = {0.1, 0.15}						-- Geode chance once it increases
p.double_ore_chance_base = 0						-- Base double ore chance
p.double_ore_chances = {0.05, 0.1}					-- Double ore chance once it increaes

-- Smithing variables

p.strike			= 2									-- Ticks per strike
p.bar_mult      	= {1, 2, 4, 8, 16}                  -- Multiplier for required bars per +X
p.progress_mult 	= {0.8, 1, 1.2, 1.4, 1.6}           -- Multiplier for required progress per +X
p.bar_contain   	= {2, 4, 8, 16, 32}                 -- Multiplier for bars contained in a +X
p.smelt_rate_base	= 4									-- Base smelting rate
p.smelt_rate		= {3.5,3}							-- Smelting rate once it increases
p.double_bars		= 0.1								-- Base double smelting chance
p.reheat_base		= 6									-- Base amount of ticks to fully reheat an item
p.reheats			= {4,2}								-- Amount of ticks to fully reheat an item once it increases
p.burial_set		= 12								-- Amount of bars in a burial set
p.burial_set_xp		= 0.05								-- How much extra XP you get for a burial set
p.tw_delay			= 1									-- Refill delay (TW = tickwaste)
p.tw_turn			= 1									-- Turn rate
p.tw_interface		= 1									-- Ticks wasted in interface
p.tw_itemforge		= 0									-- Ticks wasted forging an item
p.tickwaste			= p.tw_delay + p.tw_turn + p.tw_interface + p.tw_itemforge -- Total ticks wasted on item creation (this excludes heating time)
p.tickwaste_max		= p.tw_interface + p.tw_itemforge	-- Total ticks wasted on item creation (if starting at max heat)
p.tickwaste_afk		= p.tw_interface + p.tw_itemforge	-- Total ticks wasted on item creation for AFK players
p.high_heat			= 0.66								-- Multiplier for high heat
p.low_heat			= 0.33								-- Multiplier for low heat
p.base_progress		= 10								-- Base progress per strike
p.heat_loss			= 10								-- Heat lost per strike
p.smithing_cape		= 5									-- Additional progress granted per strike following a reheat using the Smithing skillcape


-- Masterwork variables

p.mw_bar_conc			= 4									-- Number of ticks it takes for 1 concentrated alloy bar
p.mw_bar_enr			= 8									-- Number of ticks it takes for 1 enriched alloy bar
p.mw_bar_imm			= 16								-- Number of ticks it takes for 1 immaculate alloy bar
p.mw_bar_enr_ing		= 5									-- Number of concentrated alloy bars in an enriched alloy bar
p.mw_bar_imm_ing		= 10								-- Number of enriched alloy bars in an immaculate alloy bar
p.mw_bar_enr_mult		= p.mw_bar_imm_ing / p.mw_bar_enr_ing	-- Difference between the ratio of concentrated to enriched and enriched to immaculate
p.mw_bar_imm_total		= (p.mw_bar_conc * p.mw_bar_enr_ing * p.mw_bar_imm_ing) + (p.mw_bar_enr * p.mw_bar_imm_ing)	+ p.mw_bar_imm	-- Total number of ticks to create 1 immaculate alloy bar from scratch
p.mw_bar_fold			= 2									-- Number of ticks per fold for a folded alloy bar
p.mw_bar_glorious		= p.mw_bar_fold * 1002				-- Total number of ticks to create 1 glorious bar
p.mw_rivets				= 20								-- Progress required per rivet
p.mw_rivets_amount		= 10								-- Number of rivets per steel bar
p.mw_mw_plate			= 10000								-- Progress required for a masterwork plate
p.mw_curved_plate		= 10000								-- Progress required for a curved masterwork plate
p.mw_untempered			= 10000								-- Progress required for an untempered masterwork armour piece
p.mw_armour_piece		= 100								-- Number of ticks for a masterwork armour piece
p.mw_lined				= 10								-- Number of ticks for a lined masterwork armour piece
p.mw_unfinished			= 5									-- Number of ticks per bbc for completed masterwork items
p.mw_riveting			= 10								-- Number of times a piece needs to be rivetted per bbc
p.mw_unf_total			= (p.mw_unfinished * 2) + (p.mw_unfinished * p.mw_riveting)	-- Total ticks per bbc for completed items
p.mw_unlock				= 32								-- bbc multiplier for the amount of bars needed for unlocking masterwork
p.tmw_essence			= 10								-- Number of ticks per bbc for melting down essence
p.tmw_inlay				= 1000								-- Number of ticks an energised inlay takes
p.tmw_complete			= 1000								-- Number of ticks per bbc for forging trimmed masterwork

p.picks = {	-- Pickaxes 
['Bronze']			= {name = '[[File:Bronze pickaxe.png|link=]] [[Bronze pickaxe|Bronze]]',	level = 1,  min = 3,    max = 7,    avg = 5,	pen = 0,    aug = 0},
['Iron']			= {name = '[[File:Iron pickaxe.png|link=]] [[Iron pickaxe|Iron]]',			level = 10, min = 5,    max = 15,   avg = 10,	pen = 5,    aug = 0},
['Iron+1']			= {name = '[[File:Iron pickaxe.png|link=]] Iron+1', 						level = 10, min = 6,    max = 16,   avg = 11,	pen = 5,    aug = 0},
['Steel']			= {name = '[[File:Steel pickaxe.png|link=]] [[Steel pickaxe|Steel]]',		level = 20, min = 10,   max = 30,   avg = 20,	pen = 15,   aug = 0},
['Steel+1'] 		= {name = '[[File:Steel pickaxe.png|link=]] Steel+1',   					level = 30, min = 11,   max = 31,   avg = 21,	pen = 15,   aug = 0},
['Mithril'] 		= {name = '[[File:Mithril pickaxe.png|link=]] [[Mithril pickaxe|Mithril]]',	level = 30, min = 15,   max = 45,   avg = 30,   pen = 30,   aug = 0},
['Mithril+1']		= {name = '[[File:Mithril pickaxe.png|link=]] Mithril+1',   				level = 30, min = 16,   max = 46,   avg = 31,   pen = 30,   aug = 0},
['Mithril+2']		= {name = '[[File:Mithril pickaxe.png|link=]] Mithril+2',   				level = 30, min = 17,   max = 47,   avg = 32,   pen = 30,   aug = 0},
['Adamant'] 		= {name = '[[File:Adamant pickaxe.png|link=]] [[Adamant pickaxe|Adamant]]',	level = 40, min = 20,   max = 60,   avg = 40,   pen = 50,   aug = 0},
['Adamant+1']		= {name = '[[File:Adamant pickaxe.png|link=]] Adamant+1',   				level = 40, min = 21,   max = 61,   avg = 41,   pen = 50,   aug = 0},
['Adamant+2']		= {name = '[[File:Adamant pickaxe.png|link=]] Adamant+2',   				level = 40, min = 22,   max = 62,   avg = 42,   pen = 50,   aug = 0},
['Rune']			= {name = '[[File:Rune pickaxe.png|link=]] [[Rune pickaxe|Rune]]',  		level = 50, min = 25,   max = 75,   avg = 50,   pen = 75,   aug = 0},
['Rune+1']			= {name = '[[File:Rune pickaxe.png|link=]] Rune+1', 						level = 50, min = 26,   max = 76,   avg = 51,   pen = 75,   aug = 0},
['Rune+2']			= {name = '[[File:Rune pickaxe.png|link=]] Rune+2', 						level = 50, min = 27,   max = 77,   avg = 52,   pen = 75,   aug = 0},
['Rune+3']			= {name = '[[File:Rune pickaxe.png|link=]] Rune+3', 						level = 50, min = 28,   max = 78,   avg = 53,   pen = 75,   aug = 0},
['Inferno Adze']	= {name = '[[File:Inferno adze.png|link=]] [[Inferno adze|Inferno Adze]]',	level = 50, min = 28,   max = 78,   avg = 53,   pen = 75,   aug = 0}, 
['Orikalkum']		= {name = '[[File:Orikalkum pickaxe.png|link=]] Orikalkum', 				level = 60, min = 30,   max = 90,   avg = 60,   pen = 105,  aug = 0},
['Orikalkum+1'] 	= {name = '[[File:Orikalkum pickaxe.png|link=]] Orikalkum+1',   			level = 60, min = 31,   max = 91,   avg = 61,   pen = 105,  aug = 0},
['Orikalkum+2'] 	= {name = '[[File:Orikalkum pickaxe.png|link=]] Orikalkum+2',   			level = 60, min = 32,   max = 92,   avg = 62,   pen = 105,  aug = 0},
['Orikalkum+3'] 	= {name = '[[File:Orikalkum pickaxe + 3.png|link=]] Orikalkum+3',   		level = 60, min = 33,   max = 93,   avg = 63,   pen = 105,  aug = 0},
['Dragon']			= {name = '[[File:Dragon pickaxe.png|link=]] [[Dragon pickaxe|Dragon]]',    level = 60, min = 33,   max = 93,   avg = 63,   pen = 105,  aug = 1},
['Necronium']		= {name = '[[File:Necronium pickaxe.png|link=]] Necronium', 				level = 70, min = 35,   max = 105,  avg = 70,   pen = 140,  aug = 0},
['Necronium+1'] 	= {name = '[[File:Necronium pickaxe.png|link=]] Necronium+1',   			level = 70, min = 36,   max = 106,  avg = 71,   pen = 140,  aug = 0},
['Necronium+2'] 	= {name = '[[File:Necronium pickaxe.png|link=]] Necronium+2',   			level = 70, min = 37,   max = 107,  avg = 72,   pen = 140,  aug = 0},
['Necronium+3'] 	= {name = '[[File:Necronium pickaxe.png|link=]] Necronium+3',   			level = 70, min = 38,   max = 108,  avg = 73,   pen = 140,  aug = 0},
['Necronium+4'] 	= {name = '[[File:Necronium pickaxe + 4.png|link=]] Necronium+4',   		level = 70, min = 39,   max = 109,  avg = 74,   pen = 140,  aug = 0},
['Crystal'] 		= {name = '[[File:Crystal pickaxe.png|link=]] [[Crystal pickaxe|Crystal]]',	level = 70, min = 39,   max = 109,  avg = 74,   pen = 140,  aug = 1},
['Bane']			= {name = '[[File:Bane pickaxe.png|link=]] Bane',   						level = 80, min = 40,   max = 120,  avg = 80,   pen = 185,  aug = 0},
['Bane+1']			= {name = '[[File:Bane pickaxe.png|link=]] Bane+1', 						level = 80, min = 41,   max = 121,  avg = 81,   pen = 185,  aug = 0},
['Bane+2']			= {name = '[[File:Bane pickaxe.png|link=]] Bane+2', 						level = 80, min = 42,   max = 122,  avg = 82,   pen = 185,  aug = 0},
['Bane+3']			= {name = '[[File:Bane pickaxe.png|link=]] Bane+3', 						level = 80, min = 43,   max = 123,  avg = 83,   pen = 185,  aug = 0},
['Bane+4']			= {name = '[[File:Bane pickaxe + 4.png|link=]] Bane+4', 					level = 80, min = 44,   max = 124,  avg = 84,   pen = 185,  aug = 0},
['Imcando']			= {name = '[[File:Imcando pickaxe.png|link=]] [[Imcando pickaxe|Imcando]]',	level = 80, min = 44,   max = 124,  avg = 84,   pen = 185,  aug = 1},
['Elder Rune']		= {name = '[[File:Elder rune pickaxe.png|link=]] Elder Rune',   			level = 90, min = 45,   max = 135,  avg = 90,   pen = 235,  aug = 0},
['Elder Rune+1']	= {name = '[[File:Elder rune pickaxe.png|link=]] Elder Rune+1', 			level = 90, min = 46,   max = 136,  avg = 91,   pen = 235,  aug = 0},
['Elder Rune+2']	= {name = '[[File:Elder rune pickaxe.png|link=]] Elder Rune+2', 			level = 90, min = 47,   max = 137,  avg = 92,   pen = 235,  aug = 0},
['Elder Rune+3']	= {name = '[[File:Elder rune pickaxe.png|link=]] Elder Rune+3', 			level = 90, min = 48,   max = 138,  avg = 93,   pen = 235,  aug = 0},
['Elder Rune+4']	= {name = '[[File:Elder rune pickaxe.png|link=]] Elder Rune+4', 			level = 90, min = 49,   max = 139,  avg = 94,   pen = 235,  aug = 0},
['Elder Rune+5']	= {name = '[[File:Elder rune pickaxe + 5.png|link=]] Elder Rune+5',			level = 90, min = 50,   max = 140,  avg = 95,   pen = 235,  aug = 0},
['Earth and Song']	= {name = '[[File:Pickaxe of Earth and Song.png|link=]] Earth and Song',	level = 90, min = 50,   max = 140,  avg = 95,   pen = 235,  aug = 1},
}
-- The order in which the pickaxe table will loop through
p.picks_order = {'Bronze', 'Iron', 'Iron+1', 'Steel', 'Steel+1', 'Mithril', 'Mithril+1', 'Mithril+2', 'Adamant', 'Adamant+1', 'Adamant+2', 'Rune', 'Rune+1', 'Rune+2', 'Rune+3', 'Inferno Adze', 'Orikalkum', 'Orikalkum+1', 'Orikalkum+2', 'Orikalkum+3', 'Dragon', 'Necronium', 'Necronium+1', 'Necronium+2', 'Necronium+3', 'Necronium+4', 'Crystal', 'Bane', 'Bane+1', 'Bane+2', 'Bane+3', 'Bane+4', 'Imcando', 'Elder Rune', 'Elder Rune+1', 'Elder Rune+2', 'Elder Rune+3', 'Elder Rune+4', 'Elder Rune+5', 'Earth and Song'}

p.rocks = {
{
    name = '[[Copper ore|Copper]]'..'; '.."[[Tin ore|Tin]]",
    img = "[[File:Copper ore.png|Copper ore|link=]]".."[[File:Tin ore.png|Tin ore|link=]]",
    level = 1,                      -- Level required to mine the rock
    diff = 40,                      -- HP/Durability of the rock (previously called difficulty)
    hardness = 0,                   -- Hardness of the rock
    xp = 0.66,                      -- XP multiplier of the rock
    crit_chance_level = {2,8},      -- At what levels the crit chance increases
    len_crit_chance_level = 2,      -- How many times the crit chance increases
    rockertunity_level = {6},       -- At what level the rockertunity multiplier increases
    len_rockertunity_level = 1,     -- How many times the rockertunity multiplier increases
    ore_box = 7,                    -- At what level the ore box capacity increases to 120
    geode = 'Sedimentary',          -- The type of geode this rock grants
    geode_chance_level = {},    	-- At what levels the geode chance increases
    len_geode_chance = 0,           -- How many times the geode chance increases
    double_ore_chance = {4,5},      -- At what levels the double ore chance increases
    len_double_ore = 2,             -- How many times the double ore chance increases
    core = 1,                       -- Whether this rock is a core rock
    ore = 1,                        -- Amount of ore given at a time
    spirits = 1,                    -- Whether this rock has a stone spirit associated with it 
    trah = 0,                       -- Whether this rock receives the Trah hour bonus
    varrock = {1,1,1,1},			-- Whether Varrock armours {1,2,3,4} apply to this rock
    varrock_no = 'Varrock armour 1', -- Which Varrock armour it takes its potency from
    mw_req = 1,						-- Whether this ore is needed for masterwork
    mw_amount = 100,				-- Amount of this ore required for masterwork (per bar)
    blast_furnace = 0,				-- Whether blast furnace removes the need for this ore
    old = 1,						-- Whether this ore can be bought before the rework
    },
{
    name = "[[Clay]]",
    img = "[[File:Clay.png|Clay|link=]]",
    level = 1,
    diff = 50,
    hardness = 0,
    xp = 0.66,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Rune essence]]",
    img = "[[File:Rune essence.png|Rune essence|link=]]",
    level = 1,
    diff = 50,
    hardness = 0,
    xp = 0.66,
    core = 0,
    ore = 4,
    trah = 0,
    mw_req = 0,
    },
{
	name = "[[Shooting star]]",
	img = "[[File:Stardust 175.png|Shooting star|link=]]",
	level = 1,
	diff = 1,
	hardness = 0,
	xp = 1,
	core = 0,
	ore = 0,
	trah = 0,
	mw_req = 0,
	},
{
    name = "[[Iron ore|Iron]]",
    img = "[[File:Iron ore.png|Iron ore|link=]]",
    level = 10,
    diff = 120,
    hardness = 5,
    xp = 0.68,
    crit_chance_level = {12},
    len_crit_chance_level = 1,
    rockertunity_level = {14},
    len_rockertunity_level = 1,
    ore_box = 18,
    geode = 'Sedimentary',
    geode_chance_level = {16},
    len_geode_chance = 1,
    double_ore_chance = {13},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 0,
    varrock = {1,1,1,1},
    varrock_no = 'Varrock armour 1',
    mw_req = 1,
    mw_amount = {100,51},	-- {Iron bars, Steel bars}
    blast_furnace = 0,
    old = 1,
    },
{
    name = "[[Limestone]]",
    img = "[[File:Limestone.png|Limestone|link=]]",
    level = 10,
    diff = 150,
    hardness = 5,
    xp = 0.68,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Blurite ore|Blurite]]",
    img = "[[File:Blurite ore.png|Blurite|link=]]",
    level = 10,
    diff = 150,
    hardness = 15,
    xp = 0.70,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Coal]]",
    img = "[[File:Coal.png|Coal|link=]]",
    level = 20,
    diff = 140,
    hardness = 15,
    xp = 0.7,
    crit_chance_level = {25},
    len_crit_chance_level = 1,
    rockertunity_level = {21},
    len_rockertunity_level = 1,
    ore_box = 29,
    geode = 'Sedimentary',
    geode_chance_level = {23},
    len_geode_chance = 1,
    double_ore_chance = {27},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 1,
    varrock = {1,1,1,1},
    varrock_no = 'Varrock armour 1',
    mw_req = 0,		-- We will be using concentrated coal for masterwork instead
    },
{
    name = "[[Silver ore|Silver]]",
    img = "[[File:Silver ore.png|Silver ore|link=]]",
    level = 20,
    diff = 140,
    hardness = 15,
    xp = 0.70,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Daeyalt ore|Daeyalt]]",
    img = "[[File:Daeyalt ore.png|Daeyalt ore|link=]]",
    level = 20,
    diff = 200,
    hardness = 0,
    xp = 0.72,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Mithril ore|Mithril]]",
    img = "[[File:Mithril ore.png|Mithril ore|link=]]",
    level = 30,
    diff = 240,
    hardness = 30,
    xp = 0.72,
    crit_chance_level = {31,35},
    len_crit_chance_level = 2,
    rockertunity_level = {38},
    len_rockertunity_level = 1,
    ore_box = 37,
    geode = 'Sedimentary',
    geode_chance_level = {39},
    len_geode_chance = 1,
    double_ore_chance = {36},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 1,
    varrock = {0,1,1,1},
    varrock_no = 'Varrock armour 2',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 0,
    old = 1,
    },
{
    name = "[[Sandstone]]",
    img = "[[File:Sandstone (1kg).png|Sandstone|link=]]",
    level = 35,
    diff = 150,
    hardness = 30,
    xp = 0.72,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = '[[Adamantite ore|Adamantite]]',
    img = "[[File:Adamantite ore.png|Adamantite ore|link=]]",
    level = 40,
    diff = 380,
    hardness = 50,
    xp = 0.74,
    crit_chance_level = {45,48},
    len_crit_chance_level = 2,
    rockertunity_level = {47},
    len_rockertunity_level = 1,
    ore_box = 41,
    geode = 'Sedimentary',
    geode_chance_level = {42},
    len_geode_chance = 1,
    double_ore_chance = {49},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 0,
    trah = 1,
    varrock = {0,1,1,1},
    varrock_no = 'Varrock armour 2',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 0,
    old = 1,
    },
{
    name = '[[Luminite]]',
    img = '[[File:Luminite.png|Luminite|link=]]',
    level = 40,
    diff = 380,
    hardness = 50,
    xp = 0.74,
    crit_chance_level = {45,48},
    len_crit_chance_level = 2,
    rockertunity_level = {47},
    len_rockertunity_level = 1,
    ore_box = 41,
    geode = 'Sedimentary',
    geode_chance_level = {42},
    len_geode_chance = 1,
    double_ore_chance = {49},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 0,
    varrock = {0,1,1,1},
    varrock_no = 'Varrock armour 2',
    mw_req = 1,
    mw_amount = {50,50,50},	-- {Addy bars, Rune bars, Elder rune bars}
    blast_furnace = 1,
    old = 1,	-- Despite being a new ore the resulting bars can be bought
    },
{
    name = "[[Gold ore|Gold]]",
    img = "[[File:Gold ore.png|Gold ore|link=]]",
    level = 40,
    diff = 200,
    hardness = 50,
    xp = 0.74,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Perfect gold ore|Perfect Gold]]",
    img = "[[File:Gold ore.png|Perfect gold ore|link=]]",
    level = 40,
    diff = 200,
    hardness = 0,
    xp = 0.1,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Granite]]",
    img = "[[File:Granite (500g).png|Granite|link=]]",
    level = 45,
    diff = 400,
    hardness = 50,
    xp = 0.74,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Rubium]]",
    img = "[[File:Rubium.png|Rubium|link=]]",
    level = 46,
    diff = 100,
    hardness = 0,
    xp = 0.74,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Runite ore|Runite]]",
    img = "[[File:Runite ore.png|Runite ore|link=]]",
    level = 50,
    diff = 600,
    hardness = 75,
    xp = 0.76,
    crit_chance_level = {56,58},
    len_crit_chance_level = 2,
    rockertunity_level = {54},
    len_rockertunity_level = 1,
    ore_box = 55,
    geode = 'Sedimentary',
    geode_chance_level = {51},
    len_geode_chance = 1,
    double_ore_chance = {53},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 1,
    varrock = {0,0,1,1},
    varrock_no = 'Varrock armour 3',
    mw_req = 1,
    mw_amount = {50,50},	-- {Rune bars, Elder rune bars}
    blast_furnace = 0,
    old = 1,
    },
{
    name = "[[Concentrated sandstone rocks|Concentrated Sandstone]]",
    img = "[[File:Sandstone (5kg).png|Concentrated Sandstone|link=]]",
    level = 50,
    diff = 150,
    hardness = 75,
    xp = 0.76,
    core = 0,
    ore = 1,
    spirits = 0,
    trah = 0,
    mw_req = 0,
    },
{
    name = '[[Orichalcite ore|Orichalcite]]'..'; '.."[[Drakolith]]",
    img = "[[File:Orichalcite ore.png|link=]]".."[[File:Drakolith.png|Drakolith|link=]]",
    level = 60,
    diff = 1400,
    hardness = 105,
    xp = 0.78,
    crit_chance_level = {64},
    len_crit_chance_level = 1,
    rockertunity_level = {68},
    len_rockertunity_level = 1,
    ore_box = 66,
    geode = 'Igneous',
    geode_chance_level = {63,69},
    len_geode_chance = 2,
    double_ore_chance = {62},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 0,
    varrock = {0,0,1,1},
    varrock_no = 'Varrock armour 3',
    mw_req = 1,
    mw_amount = 100,
    blast_furnace = 0,
    old = 0,
    },
{
    name = "[[Crust|Lava Flow Mine]]",
    img = "[[File:Crust.png|50px|Lava Flow Mine Crust|link=]]",
    level = 68,
    diff = 200000,
    hardness = 105,
    xp = 0.78,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = '[[Necrite ore|Necrite]]'..'; '.."[[Phasmatite]]",
    img = "[[File:Necrite ore.png|Necrite ore|link=]]".."[[File:Phasmatite.png|Phasmatite|link=]]",
    level = 70,
    diff = 1300,
    hardness = 140,
    xp = 0.8,
    crit_chance_level = {75},
    len_crit_chance_level = 1,
    rockertunity_level = {73,77},
    len_rockertunity_level = 2,
    ore_box = 72,
    geode = 'Igneous',
    geode_chance_level = {75,78},
    len_geode_chance = 2,
    double_ore_chance = {76},
    len_double_ore = 1,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 0,
    varrock = {0,0,1,1},
    varrock_no = 'Varrock armour 3',
    mw_req = 1,
    mw_amount = 100,
    blast_furnace = 0,
    old = 0,
    },
{
    name = "[[Concentrated coal rock|Concentrated Coal]]",
    img = "[[File:Coal.png|Coal|link=]]",
    level = 70,
    diff = 500,
    hardness = 140,
    xp = 0.8,
    crit_chance_level = {25},
    len_crit_chance_level = 1,
    rockertunity_level = {21},
    len_rockertunity_level = 1,
    ore_box = 29,
    double_ore_chance = {27},
    len_double_ore = 1,
    geode = 'Igneous',
    geode_chance_level = {25},
    len_geode_chance = 1,
    core = 1,
    ore = 5,
    spirits = 1,
    trah = 0,
    mw_req = 1,
    mw_amount = {51,50},	-- {Steel bars, Mithril bars}
    blast_furnace = 1,
    varrock = {1,1,1,1},
    varrock_no = 'Varrock armour 1',
    old = 1,
    },
{
    name = "[[Living rock remains]]",
    img = "[[File:Living minerals.png|Living minerals|link=]]",
    level = 73,
    diff = 1300,
    hardness = 140,
    xp = 0.80,
    core = 0,
    ore = 11,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Soft clay]]",
    img = "[[File:Soft clay.png|Soft clay|link=]]",
    level = 75,
    diff = 75,
    hardness = 0,
    xp = 0.66,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Solid Crystal]]",
    img = "[[File:Crystal fragment.png|Crystal|link=]]",
    level = 75,
    diff = 800,
    hardness = 105,
    xp = 0.80,
    core = 0,
    ore = 1,
    trah = 0,
    mw_req = 0,
    },
{
    name = "Prifddinas gem rock",
    img = "[[File:Uncut dragonstone.png|Prifddinas gem rock|link=]]",
    level = 75,
    diff = 1150,
    hardness = 140,
    xp = 0.80,
    core = 0,
    ore = 1,
    trah = 1,
    mw_req = 0,
    },
{
    name = "[[Bane ore|Banite]]",
    img = "[[File:Banite ore.png|Banite ore|link=]]",
    level = 80,
    diff = 1700,
    hardness = 185,
    xp = 0.82,
    crit_chance_level = {81},
    len_crit_chance_level = 1,
    rockertunity_level = {89},
    len_rockertunity_level = 1,
    ore_box = 85,
    geode = 'Igneous',
    geode_chance_level = {83},
    len_geode_chance = 1,
    double_ore_chance = {82,86},
    len_double_ore = 2,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 0,
    varrock = {0,0,0,1},
    varrock_no = 'Varrock armour 4',
    mw_req = 1,
    mw_amount = 100,
    blast_furnace = 0,
    old = 0,
    },
{
    name = "[[Concentrated gold rock|Concentrated Gold]]",
    img = "[[File:Gold ore.png|Gold ore|link=]]",
    level = 80,
    diff = 750,
    hardness = 185,
    xp = 0.82,
    core = 0,
    ore = 5,
    spirits = 0,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Lava geyser|Lava Flow Mine Geyser]]",
    img = "[[File:Imcando pickaxe fragment 1.png|Lava Geyser|link=]]",
    level = 80,
    diff = 1,
    hardness = 185,
    xp = 0.78,
    core = 0,
    ore = 0,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Red sandstone]]",
    img = "[[File:Red sandstone.png|Red sandstone|link=]]",
    level = 81,
    diff = 100,
    hardness = 0,
    xp = 0.82,
    core = 0,
    ore = 1,
    spirits = 0,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Crystal-flecked sandstone]]",
    img = "[[File:Crystal-flecked sandstone (ore).png|Crystal-flecked sandstone|link=]]",
    level = 81,
    diff = 100,
    hardness = 0,
    xp = 0.82,
    core = 0,
    ore = 1,
    spirits = 0,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Seren stones]]",
    img = "[[File:Corrupted ore.png|Seren stones|link=]]",
    level = 89,
    diff = 500,
    hardness = 140,
    xp = 1.2,
    core = 0,
    ore = 1,
    spirits = 0,
    trah = 1,
    mw_req = 0,
    },
{
    name = '[[Light animica]]'..'; '.."[[Dark animica]]",
    img = "[[File:Light animica.png|Light animica|link=]]".."[[File:Dark animica.png|Dark animica|link=]]",
    level = 90,
    diff = 2000,
    hardness = 235,
    xp = 0.84,
    crit_chance_level = {91,97},
    len_crit_chance_level = 2,
    rockertunity_level = {94,96},
    len_rockertunity_level = 2,
    ore_box = 95,
    geode = 'Igneous',
    geode_chance_level = {93},
    len_geode_chance = 1,
    double_ore_chance = {92,98},
    len_double_ore = 2,
    core = 1,
    ore = 1,
    spirits = 1,
    trah = 1,
    varrock = {0,0,0,1},
    varrock_no = 'Varrock armour 4',
    mw_req = 1,
    mw_amount = 100,
    blast_furnace = 0,
    old = 0,
    },
{
    name = "[[Salty crabletine]]",
    img = "[[File:Sea salt.png|Sea salt|link=]]",
    level = 90,
    diff = 1200,
    hardness = 185,
    xp = 0.78,
    core = 0,
    ore = 1,
    spirits = 0,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Salty crablet]]",
    img = "[[File:Sea salt.png|Sea salt|link=]]",
    level = 90,
    diff = 1200,
    hardness = 185,
    xp = 0.82,
    core = 0,
    ore = 1,
    spirits = 0,
    trah = 0,
    mw_req = 0,
    },
{
    name = "[[Alaea crablet]]",
    img = "[[File:Alaea sea salt.png|Alaea sea salt|link=]]",
    level = 97,
    diff = 1200,
    hardness = 185,
    xp = 1.5,
    core = 0,
    ore = 1,
    spirits = 0,
    trah = 0,
    mw_req = 0,
    },
}

p.metals = {
{
    name = '[[Bronze bar|Bronze]]',									-- Name of the metal
    img  = '[[File:Bronze bar.png|link=]]',							-- Bar image
    img1 = "[[File:Bronze armoured boots.png|link=]]",						-- Boots image
    img2 = "[[File:Bronze full helm.png|link=]]",					-- Full helm image
    img3 = "[[File:Bronze kiteshield.png|link=]]",					-- Kiteshield image
    img4 = "[[File:Bronze 2h sword.png|link=]]",					-- 2H sword image
    img5 = "[[File:Bronze platebody.png|link=]]",					-- Platebody image
    level = 1,														-- Level to smith this metal
    xp = 15,														-- XP per bar
    smelt = 1,														-- Smelt XP per bar
    progress = 100,													-- Progress per bar
    max = 0,														-- Max +X for this metal
    burial = 0,														-- Whether this metal can be buried
    est_ge = 50,													-- Mod Jack's estimated settled GE price
    val_item = 50,													-- Alch value of the equipment this metal makes per bar used
    val_bar = 25,													-- Alch value of the bar itself
    val_ore = 10,													-- Alch value of the repective ore
    primary = '[[File:Copper ore.png|link=]] [[Copper ore]]',		-- Primary ore for this metal
    secondary = '[[File:Tin ore.png|link=]] [[Tin ore]]',			-- Secondary ore for this metal
    max_heat = 6,													-- At what level this metal starts at maximum heat
    smelt_rate_level = {2,5},										-- At what levels the ticks per smelt reduces
    double_smelt = 9,												-- At what level the double smelt chance unlocks
    extra_progress = 8,												-- At what level you begin to make 11 base progress instead of 10
    reheat_level = {3,7},											-- At what levels the time to reheat an item reduces
    varrock = {1,1,1,1},											-- What levels of varrock armour apply to this metal
    varrock_no = 'Varrock armour 1',								-- Which varrock armour gives the benefit for this metal
    mw_req = 1,														-- Whether this bar required for masterwork
    mw_amount = 50,													-- Amount of this bar required for masterwork (per bar)
    blast_furnace = 0,												-- Whether this bar can be smelted at the blast furnace
    old = 1,														-- Whether this bar is obtainable pre-rework
    price = gemw.price('Bronze bar'),								-- Current GE Price
    },
{
    name = '[[Iron bar|Iron]]',
    img  = '[[File:Iron bar.png|link=]]',
    img1 = "[[File:Iron armoured boots.png|link=]]",
    img2 = "[[File:Iron full helm.png|link=]]",
    img3 = "[[File:Iron kiteshield.png|link=]]",
    img4 = "[[File:Iron 2h sword.png|link=]]",
    img5 = "[[File:Iron platebody.png|link=]]",
    level = 10,
    xp = 40,
    smelt = 2,
    progress = 200,
    max = 1,
    burial = 0,
    est_ge = 100,
    val_item = 75,
    val_bar = 35,
    val_ore = 15,
    primary = '[[File:Iron ore.png|link=]] [[Iron ore]] <sup>(x2)</sup>',
    max_heat = 16,
    smelt_rate_level = {14,17},
    double_smelt = 19,
    extra_progress = 13,
    reheat_level = {12,18},
    varrock = {1,1,1,1},
    varrock_no = 'Varrock armour 1',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 0,
    old = 1,
    price = gemw.price('Iron bar'),
    },
{
    name = '[[Steel bar|Steel]]',
    img  = '[[File:Steel bar.png|link=]]',
    img1 = "[[File:Steel armoured boots.png|link=]]",
    img2 = "[[File:Steel full helm.png|link=]]",
    img3 = "[[File:Steel kiteshield.png|link=]]",
    img4 = "[[File:Steel 2h sword.png|link=]]",
    img5 = "[[File:Steel platebody.png|link=]]",
    level = 20,
    xp = 75,
    smelt = 3,
    progress = 300,
    max = 1,
    burial = 0,
    est_ge = 200,
    val_item = 100,
    val_bar = 50,
    val_ore = 25,
    primary = '[[File:Iron ore.png|link=]] [[Iron ore]]',
    secondary = '[[File:Coal.png|link=]] [[Coal]]',
    max_heat = 28,
    smelt_rate_level = {21,23},
    double_smelt = 27,
    extra_progress = 25,
    reheat_level = {22,26},
    varrock = {1,1,1,1},
    varrock_no = 'Varrock armour 1',
    mw_req = 1,
    mw_amount = 51,
    blast_furnace = 1,
    old = 1,
    price = gemw.price('Steel bar'),
    },
{
    name = '[[Mithril bar|Mithril]]',
    img  = '[[File:Mithril bar.png|link=]]',
    img1 = "[[File:Mithril armoured boots.png|link=]]",
    img2 = "[[File:Mithril full helm.png|link=]]",
    img3 = "[[File:Mithril kiteshield.png|link=]]",
    img4 = "[[File:Mithril 2h sword.png|link=]]",
    img5 = "[[File:Mithril platebody.png|link=]]",
    level = 30,
    xp = 120,
    smelt = 5,
    progress = 400,
    max = 2,
    burial = 0,
    est_ge = 400,
    val_item = 150,
    val_bar = 75,
    val_ore = 35,
    primary = '[[File:Mithril ore.png|link=]] [[Mithril ore]]',
    secondary = '[[File:Coal.png|link=]] [[Coal]]',
    max_heat = 36,
    smelt_rate_level = {31,37},
    double_smelt = 38,
    extra_progress = 34,
    reheat_level = {35,39},
    varrock = {0,1,1,1},
    varrock_no = 'Varrock armour 2',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 1,
    old = 1,
    price = gemw.price('Mithril bar'),
    },
{
    name = '[[Adamant bar|Adamant]]',
    img  = '[[File:Adamant bar.png|link=]]',
    img1 = "[[File:Adamant armoured boots.png|link=]]",
    img2 = "[[File:Adamant full helm.png|link=]]",
    img3 = "[[File:Adamant kiteshield.png|link=]]",
    img4 = "[[File:Adamant 2h sword.png|link=]]",
    img5 = "[[File:Adamant platebody.png|link=]]",
    level = 40,
    xp = 170,
    smelt = 7,
    progress = 500,
    max = 2,
    burial = 1,
    est_ge = 800,
    val_item = 200,
    val_bar = 100,
    val_ore = 50,
    primary = '[[File:Adamantite ore.png|link=]] [[Adamantite ore]]',
    secondary = '[[File:Luminite.png|link=]] [[Luminite]]',
    max_heat = 41,
    smelt_rate_level = {46,48},
    double_smelt = 47,
    extra_progress = 49,
    reheat_level = {42,44},
    varrock = {0,1,1,1},
    varrock_no = 'Varrock armour 2',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 1,
    old = 1,
    price = gemw.price('Adamant bar'),
    },
{
    name = '[[Rune bar|Rune]]',
    img  = '[[File:Rune bar.png|link=]]',
    img1 = "[[File:Rune armoured boots.png|link=]]",
    img2 = "[[File:Rune full helm.png|link=]]",
    img3 = "[[File:Rune kiteshield.png|link=]]",
    img4 = "[[File:Rune 2h sword.png|link=]]",
    img5 = "[[File:Rune platebody.png|link=]]",
    level = 50,
    xp = 240,
    smelt = 10,
    progress = 600,
    max = 3,
    burial = 1,
    est_ge = 1600,
    val_item = 500,
    val_bar = 250,
    val_ore = 125,
    primary = '[[File:Runite ore.png|link=]] [[Runite ore]]',
    secondary = '[[File:Luminite.png|link=]] [[Luminite]]',
    max_heat = 59,
    smelt_rate_level = {53,56},
    double_smelt = 57,
    extra_progress = 51,
    reheat_level = {54,58},
    varrock = {0,0,1,1},
    varrock_no = 'Varrock armour 3',
    mw_req = 1,
    mw_amount = {50,50},	-- {Rune bars, Elder rune bars}
    blast_furnace = 1,
    old = 1,
    price = gemw.price('Rune bar'),
    },
{
    name = '[[Orikalkum bar|Orikalkum]]',
    img  = '[[File:Orikalkum bar.png|link=]]',
    img1 = "[[File:Orikalkum armoured boots.png|link=]]",
    img2 = "[[File:Orikalkum full helm.png|link=]]",
    img3 = "[[File:Orikalkum kiteshield.png|link=]]",
    img4 = "[[File:Orikalkum two hand warhammer.png|link=]]",
    img5 = "[[File:Orikalkum platebody.png|link=]]",
    level = 60,
    xp = 350,
    smelt = 13,
    progress = 700,
    max = 3,
    burial = 1,
    est_ge = 3200,
    val_item = 1000,
    val_bar = 500,
    val_ore = 250,
    primary = '[[File:Orichalcite ore.png|link=]] [[Orichalcite ore]]',
    secondary = '[[File:Drakolith.png|link=]] [[Drakolith]]',
    max_heat = 63,
    smelt_rate_level = {61,65},
    double_smelt = 62,
    extra_progress = 68,
    reheat_level = {67,69},
    varrock = {0,0,1,1},
    varrock_no = 'Varrock armour 3',
    dw = 'Warhammers',
    twoh = 'Maul',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 0,
    old = 0,
    },
{
    name = '[[Necronium bar|Necronium]]',
    img  = '[[File:Necronium bar.png|link=]]',
    img1 = "[[File:Necronium armoured boots.png|link=]]",
    img2 = "[[File:Necronium full helm.png|link=]]",
    img3 = "[[File:Necronium kiteshield.png|link=]]",
    img4 = "[[File:Necronium two hand greataxe.png|link=]]",
    img5 = "[[File:Necronium platebody.png|link=]]",
    level = 70,
    xp = 500,
    smelt = 17,
    progress = 800,
    max = 4,
    burial = 1,
    est_ge = 8000,
    val_item = 2000,
    val_bar = 1000,
    val_ore = 500,
    primary = '[[File:Necrite ore.png|link=]] [[Necrite ore]]',
    secondary = '[[File:Phasmatite.png|link=]] [[Phasmatite]]',
    max_heat = 76,
    smelt_rate_level = {75,77},
    double_smelt = 74,
    extra_progress = 72,
    reheat_level = {73,78},
    varrock = {0,0,1,1},
    varrock_no = 'Varrock armour 3',
    dw = 'Battleaxes',
    twoh = 'Great Axe',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 0,
    old = 0,
    },
{
    name = '[[Bane bar|Bane]]',
    img  = '[[File:Bane bar.png|link=]]',
    img1 = "[[File:Bane armoured boots.png|link=]]",
    img2 = "[[File:Bane full helm.png|link=]]",
    img3 = "[[File:Bane square shield.png|link=]]",
    img4 = "[[File:Bane 2h sword.png|link=]]",
    img5 = "[[File:Bane platebody.png|link=]]",
    level = 80,
    xp = 700,
    smelt = 21,
    progress = 900,
    max = 4,
    burial = 1,
    est_ge = 10000,
    val_item = 4000,
    val_bar = 2000,
    val_ore = 1000,
    primary = '[[File:Banite ore.png|link=]] [[Banite ore]] <sup>(x2)</sup>',
    max_heat = 87,
    smelt_rate_level = {86,89},
    double_smelt = 81,
    extra_progress = 83,
    reheat_level = {82,85},
    varrock = {0,0,0,1},
    varrock_no = 'Varrock armour 4',
    dw = 'Longswords',
    twoh = '2H Sword',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 0,
    old = 0,
    },
{
    name = '[[Elder rune bar|Elder Rune]]',
    img  = '[[File:Elder rune bar.png|link=]]',
    img1 = "[[File:Elder rune armoured boots.png|link=]]",
    img2 = "[[File:Elder rune full helm.png|link=]]",
    img3 = "[[File:Elder rune round shield.png|link=]]",
    img4 = "[[File:Elder rune 2h sword.png|link=]]",
    img5 = "[[File:Elder rune platebody.png|link=]]",
    level = 90,
    xp = 1000,
    smelt = 26,
    progress = 1000,
    max = 5,
    burial = 1,
    est_ge = 25000,
    val_item = 10000,
    val_bar = 5000,
    val_ore = 2000,
    primary = '[[File:Rune bar.png]] [[Rune bar]]',
    secondary = '[[File:Light animica.png|link=]] [[Light animica]]',
    tertiary = '[[File:Dark animica.png|link=]] [[Dark animica]]',
    max_heat = 98,
    smelt_rate_level = {91,94},
    double_smelt = 92,
    extra_progress = 99,
    reheat_level = {93,96},
    varrock = {0,0,0,1},
    varrock_no = 'Varrock armour 4',
    dw = '[[File:Elder rune longsword.png|link=]] [[Elder rune longsword|Longswords]]',
    twoh = '2H Sword',
    mw_req = 1,
    mw_amount = 50,
    blast_furnace = 0,
    old = 0,
    },
}

p.bbc = {	['Gauntlets; Boots']			= 1,
			['1H Weapon; Pickaxe; Helm']	= 2,
			['Platelegs; Kiteshield']		= 3,
			['2H Weapon']					= 4,
			['Platebody']					= 5,
}

p.auras = {
    ['None'] =                      {crit = 0, geode = 0, xp = 0},
    ['Quarrymaster'] =              {crit = 0.02, geode = 0, xp = 0},
    ['Greater Quarrymaster'] =      {crit = 0.04, geode = 0, xp = 0},
    ['Master Quarrymaster'] =       {crit = 0.06, geode = 0, xp = 0},
    ['Supreme Quarrymaster'] =      {crit = 0.08, geode = 0, xp = 0},
    ['Legendary Quarrymaster'] =    {crit = 0.1, geode = 0, xp = 0},
    ['Resourceful'] =               {crit = 0, geode = 0.02, xp = 0},
    ['Wisdom'] =                    {crit = 0, geode = 0, xp = 0.025},
    ['Hellion'] =                   {crit = 0, geode = 0, xp = 0.1},
    }

p.scrimshaw = {
    ['None'] =                      {crit = 0, geode = 0},
    ['Rock-crushing'] =             {crit = 0.02, geode = 0},
    ['Superior rock-crushing'] =    {crit = 0.03, geode = 0},
    ['Gem-finding'] =               {crit = 0, geode = 0.02},
    ['Superior gem-finding'] =      {crit = 0, geode = 0.03},
}

p.familiar_m = {
    ['None'] = 0,
    ['Desert Wyrm'] = 1,
    ['Void Ravager'] = 1,
    ['Obsidian Golem'] = 7,
    ['Lava Titan'] = 10,
}

p.avatar = {
    ['None'] = 0,
    ['3%'] = 0.03,
    ['4%'] = 0.04,
    ['5%'] = 0.05,
    ['6%'] = 0.06,
}

p.spells_m = {
    ['None'] =                      {xp = 0, ore = 1},
    ['Crystallise'] =               {xp = 0.2, ore = 0},
    ['Crystallise + Light Form'] =  {xp = 0.4, ore = 0},
    }

p.honed = {
	['None']	= 0,
	['Honed 1'] = 0.02,
	['Honed 2'] = 0.04,
	['Honed 3'] = 0.06,
	['Honed 4'] = 0.08,
	['Honed 5'] = 0.1,
}

p.wise = {
	['None']	= 0,
	['Wise 1']	= 0.01,
	['Wise 2']	= 0.02,
	['Wise 3']	= 0.03,
}

p.refined = {
	['None'] = 0,
	['Refined 1'] = 0.02,
	['Refined 2'] = 0.04,
	['Refined 3'] = 0.06,
}

p.tinker = {
	['None'] = 0,
	['Tinker 1'] = 0.02,
	['Tinker 2'] = 0.04,
	['Tinker 3'] = 0.06,
}

p.furnace = {
	['None'] =		0,
	['Furnace 1'] = 0.05,
	['Furnace 2'] = 0.1,
	['Furnace 3'] = 0.15,
}

p.rapid = {
	['None'] =		{ progress = 1,		heat = 1},
	['Rapid 1'] =	{ progress = 1.05,	heat = 2},
	['Rapid 2'] =	{ progress = 1.1,	heat = 2},
	['Rapid 3'] =	{ progress = 1.15,	heat = 2},
}

p.solemn = {
	['None']				= 0,
	['Solemn Smith I']		= 0.01,
	['Solemn Smith II'] 	= 0.02,
	['Solemn Smith III']	= 0.03,
	['Solemn Smith IV'] 	= 0.04,
	['Solemn Smith V']		= 0.05,
}

p.urns = {
	['None']			= 0,
	['Urns']			= 0.2,
	['Urns + Enhancer']	= 0.25,
}

p.rings = {
	['None']				= { damage = 0, meta = 0},		-- Damage = bonus mining damage
	['Ring of Whispers']	= { damage = 3, meta = 0},		-- Meta = increased chance of metamorphic geode
	['Ring of Wealth']		= { damage = 0, meta = 0.01},
}

p.varrock = {
	['None']			 = { no = 0, effect = 0},
	['Varrock armour 1'] = { no = 1, effect = 0.04 },
	['Varrock armour 2'] = { no = 2, effect = 0.03 },
	['Varrock armour 3'] = { no = 3, effect = 0.02 },
	['Varrock armour 4'] = { no = 4, effect = 0.01 },
}

p.newvar = {
	['None']			= {1,1,1},	-- {Mining, Smelting, Smithing}
	['Medium Tasks']	= {2,1,1},	-- Checks if the tasks completed doubles the effect
	['Hard Tasks']		= {2,2,1},	-- Used a multiplier
	['Elite Tasks']		= {2,2,2},
}

p.outfit_s = {	-- Skilling outfits (Blacksmith's and Golden mining)
	['None']	= 0,
	['1 Piece'] = 0.01,
	['2 Pieces'] = 0.02,
	['3 Pieces'] = 0.03,
	['4 Pieces'] = 0.04,
	['5 Pieces'] = 0.06,
}

p.outfit_m = {	-- Mining outfits
	['None']					= { rck = 0, crit = 0,		gmo = 0},	-- rck = Rockertunity multiplier
	['Magic Golem Outift']		= { rck = 1, crit = 0.05,	gmo = 1},	-- crit = Crit chance
	['Golden Mining Oufit']		= { rck = 0, crit = 0,		gmo = 1},	-- gmo = This outfit uses golden mining outfit's bonus
	['Starfury Outfit']			= { rck = 0, crit = 0.05,	gmo = 1},
}

p.ramhammer = {
	['None']			= { xp = 0,	ore = 0},
	['Resource Mode']	= { xp = 0, ore = 1},
	['XP Mode']			= { xp = 1, ore = 0},
}

p.method_s = {
['2-Ticking'] = {
	progress = 2,
	superheat = 2,
	coal = 0,
	refill = 0,
	},
['High Heat'] = {
    progress = 2,	-- Progress multiplier
    superheat = 2,	-- Progress multiplier with superheat form 
    coal = 0,		-- Whether this method uses coal
    refill = 1,		-- Whether this method refills heat
    },
['AFK with Autoheater'] = {
    progress = 1,
    superheat = 1.5,
    coal = 1,
    refill = 0,
    },
['Zero Heat'] = {
    progress = 0.5,
    superheat = 0.5,
    coal = 0,
    refill = 0,
    },
}

p.method_m = {
['4-Ticking'] = {
    name = '4-Ticking',
    xp = 1,
    rck = 0,
    },
['4-Ticking + Rockertunities'] = {
    name = '4-Ticking + Rockertunities',
    xp = 1,
    rck = 1,
    },
['AFK'] = {
    name = 'AFK',
    xp = 0.8,
    rck = 0,
    },
['AFK + Rockertunities'] = {
	name = 'AFK + Rockertunities',
	xp = 1/1.125,
	rck = 1,
	},
}

p.salvage = {
    ['tier'] = {
        ['Bronze'] =	{ alch = 20,	junk = 98.9,	value = gemw.price('Copper ore') + gemw.price('Tin ore')},
        ['Iron'] =		{ alch = 65,	junk = 89,		value = gemw.price('Iron ore')},
        ['Steel'] = 	{ alch = 240,	junk = 78,		value = gemw.price('Iron ore') + (2 * gemw.price('Coal'))},
        ['Mithril'] =	{ alch = 600,	junk = 67,		value = gemw.price('Mithril ore') + (4 * gemw.price('Coal'))},
        ['Adamant'] =	{ alch = 2000,	junk = 56,		value = gemw.price('Adamantite ore') + (6 * gemw.price('Coal'))},
        ['Rune'] =		{ alch = 8000,	junk = 45,		value = gemw.price('Runite ore') + (8 * gemw.price('Coal'))},
    },
    ['size'] = {
        Tiny = 1,
        Small = 2,
        Medium = 3,
        Large = 4,
        Huge = 5,
        },
    }
p.salvage_gear_order = {'dagger','hatchet','mace','helm','sword','scimitar','pickaxe','longsword','full helm','sq shield','claw','warhammer','battleaxe','chainbody','kiteshield','2h sword','platelegs','plateskirt','platebody'}
p.spring = gemw.price('Spring')

p.tokens = {
	{ name = 'gauntlets',	tokens = 5,		type = 'plated',	size = 'Tiny',		rune = 'Tiny',		bar = 0,},
	{ name = 'boots',		tokens = 10,	type = 'plated',	size = 'Tiny',		rune = 'Tiny',		bar = 0,},
	{ name = 'helm',		tokens = 15,	type = 'plated',	size = 'Tiny',		rune = 'Tiny',		bar = 1,},
	{ name = 'full helm',	tokens = 30,	type = 'plated',	size = 'Small',		rune = 'Medium',	bar = 2,},
	{ name = 'sq shield',	tokens = 30,	type = 'plated',	size = 'Small',		rune = 'Medium',	bar = 2,},
	{ name = 'chainbody',	tokens = 40,	type = 'plated',	size = 'Medium',	rune = 'Large',		bar = 3,},
	{ name = 'platelegs',	tokens = 50,	type = 'plated',	size = 'Medium',	rune = 'Large',		bar = 3,},
	{ name = 'plateskirt',	tokens = 50,	type = 'plated',	size = 'Medium',	rune = 'Large',		bar = 3,},
	{ name = 'kiteshield',	tokens = 40,	type = 'plated',	size = 'Medium',	rune = 'Large',		bar = 3,},
	{ name = 'platebody',	tokens = 50,	type = 'plated',	size = 'Huge',		rune = 'Huge',		bar = 5,},
	{ name = 'dagger',		tokens = 5,		type = 'spiky',		size = 'Tiny',		rune = 'Tiny',		bar = 1,},
	{ name = 'mace',		tokens = 10,	type = 'blunt',		size = 'Tiny',		rune = 'Tiny',		bar = 1,},	
	{ name = 'claw',		tokens = 5,		type = 'spiky',		size = 'Tiny',		rune = 'Tiny',		bar = 2,},
	{ name = 'sword',		tokens = 15,	type = 'spiky',		size = 'Tiny',		rune = 'Tiny',		bar = 1,},
	{ name = 'scimitar',	tokens = 20,	type = 'bladed',	size = 'Small',		rune = 'Medium',	bar = 2,},
	{ name = 'longsword',	tokens = 25,	type = 'bladed',	size = 'Small',		rune = 'Medium',	bar = 2,},
	{ name = 'battleaxe',	tokens = 30,	type = 'bladed',	size = 'Medium',	rune = 'Large',		bar = 3,},
	{ name = 'warhammer',	tokens = 30,	type = 'blunt',		size = 'Medium',	rune = 'Medium',	bar = 3,},
	{ name = '2h sword',	tokens = 50,	type = 'bladed',	size = 'Medium',	rune = 'Large',		bar = 3,},
	{ name = 'spear',		tokens = 15,	type = 'spiky',		size = 'Medium',	rune = 'Medium',	bar = 1,},
	{ name = 'halberd', 	tokens = 100,	type = 'bladed',	size = 'Huge',		rune = 'Huge',		bar = 0,},
	{ name = 'hatchet', 	tokens = 10,	type = 'bladed',	size = 'Tiny',		rune = 'Tiny',		bar = 1,},
	{ name = 'pickaxe', 	tokens = 30,	type = 'spiky',		size = 'Small',		rune = 'Medium',	bar = 2,},
}
p.token_tiers = {'Steel', 'Mithril', 'Adamant', 'Rune'}

p.sedimentary = {
    {name = 'Uncut opal', prob = 0.4},
    {name = 'Uncut jade', prob = 0.25},
    {name = 'Uncut red topaz', prob = 0.15},
    {name = 'Uncut sapphire', prob = 0.1},
    {name = 'Uncut emerald', prob = 0.05},
    {name = 'Uncut ruby', prob = 0.03},
    {name = 'Uncut diamond', prob = 0.02},
    }
p.igneous = {
    {name = 'Uncut opal', prob = 0.1},
    {name = 'Uncut jade', prob = 0.12},
    {name = 'Uncut red topaz', prob = 0.14},
    {name = 'Uncut sapphire', prob = 0.16},
    {name = 'Uncut emerald', prob = 0.18},
    {name = 'Uncut ruby', prob = 0.16},
    {name = 'Uncut diamond', prob = 0.1},
    {name = 'Uncut dragonstone', prob = 0.04},
    }

p.protean = {
    {name = 'Bronze',       level = 1,  xp = 65},
    {name = 'Iron',         level = 10, xp = 100},
    {name = 'Steel',        level = 20, xp = 130},
    {name = 'Mithril',      level = 30, xp = 165},
    {name = 'Adamant',      level = 40, xp = 200},
    {name = 'Rune',         level = 50, xp = 230},
    {name = 'Orikalkum',    level = 60, xp = 265},
    {name = 'Necronium',    level = 70, xp = 330},
    {name = 'Bane',         level = 80, xp = 400},
    {name = 'Elder Rune',   level = 90, xp = 530},
}
p.protean_hr = 750

p.skillchompa = {
	['None']		= { level = 1,	bonus = 0},
    ['Cobalt']		= { level = 31, bonus = 30,},
    ['Viridian']	= { level = 41, bonus = 40,},
    ['Azure']		= { level = 51, bonus = 50,},
    ['Crimson'] 	= { level = 61, bonus = 60,},
    ['Crystal'] 	= { level = 71, bonus = 70,},
}
p.skillchompa_order = {'Cobalt','Viridian','Azure','Crimson','Crystal'}

p.malevolent = {	-- Malevolent Essence
	{name = '[[File:Malevolent helm.png|link=]] [[Malevolent helm]]',		bbc = 2, price = (gemw.price('Malevolent helm'))},		
	{name = '[[File:Malevolent cuirass.png|link=]] [[Malevolent cuirass]]',	bbc = 6, price = (gemw.price('Malevolent cuirass'))},
	{name = '[[File:Malevolent greaves.png|link=]] [[Malevolent greaves]]',	bbc = 4, price = (gemw.price('Malevolent greaves'))},
}	-- Cheapest price of 12 Malevolent essence for a TMW set:
p.malevolent_min = math.min((p.malevolent[1]['price'] / p.malevolent[1]['bbc']), (p.malevolent[2]['price'] / p.malevolent[2]['bbc']), (p.malevolent[3]['price'] / p.malevolent[3]['bbc']))

p.torva = {	-- Praesulic Essence
	{name = '[[File:Torva full helm.png|link=]] [[Torva full helm]]',	bbc = 2, price = (gemw.price('Torva full helm'))},
	{name = '[[File:Torva platebody.png|link=]] [[Torva platebody]]',	bbc = 5, price = (gemw.price('Torva platebody'))},
	{name = '[[File:Torva platelegs.png|link=]] [[Torva platelegs]]',	bbc = 3, price = (gemw.price('Torva platelegs'))},
	{name = '[[File:Torva gloves.png|link=]] [[Torva gloves]]',			bbc = 1, price = (gemw.price('Torva gloves'))},
	{name = '[[File:Torva boots.png|link=]] [[Torva boots]]',			bbc = 1, price = (gemw.price('Torva boots'))},
}	-- Cheapest price of 12 Praesulic essence for a TMW set:
p.torva_min = math.min((p.torva[1]['price'] / p.torva[1]['bbc']), (p.torva[2]['price'] / p.torva[2]['bbc']), (p.torva[3]['price'] / p.torva[3]['bbc']), (p.torva[4]['price'] / p.torva[4]['bbc']), (p.torva[5]['price'] / p.torva[5]['bbc']))

return p