Module:Sandbox/User:Im Wired In/PotionList

From Brighter Shores Wiki
Revision as of 04:05, 27 November 2024 by Im Wired In (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Module documentation
This documentation is transcluded from Module:Sandbox/User:Im Wired In/PotionList/doc. [edit] [history] [purge]

This module does not have any documentation. Please consider adding documentation at Module:Sandbox/User:Im Wired In/PotionList/doc. [edit]

[
    {
        "prep duration": 5,
        "prep xp": 42,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 63,
        "duration": 7.5,
        "name": "10% Potion Healing",
        "lvl": 0,
        "reagent values": 200,
        "preparation": "10% Preparation Healing",
        "sell": 450,
        "reagents": "Brown Kelp"
    },
    {
        "prep duration": 5,
        "prep xp": 45,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 67,
        "duration": 7.5,
        "name": "20% Potion Healing",
        "lvl": 2,
        "reagent values": 165,
        "preparation": "Bottle",
        "sell": 640,
        "reagents": "Creamy Wallplant"
    },
    {
        "prep duration": 5,
        "prep xp": 47,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 71,
        "duration": 7.5,
        "name": "5% Potion XP Hopeport",
        "lvl": 4,
        "reagent values": 260,
        "preparation": "Bottle",
        "sell": 740,
        "reagents": "Horn Shell"
    },
    {
        "prep duration": 5,
        "prep xp": 50,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 75,
        "duration": 7.5,
        "name": "+40 Potion Strength Arborae",
        "lvl": 6,
        "reagent values": 320,
        "preparation": "Bottle",
        "sell": 870,
        "reagents": "Mauve Bellplant"
    },
    {
        "prep duration": 5,
        "prep xp": 53,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 79,
        "duration": 7.5,
        "name": "+40 Potion Strength Cryonae",
        "lvl": 8,
        "reagent values": 380,
        "preparation": "Bottle",
        "sell": 1090,
        "reagents": "Wrinkled Starfish"
    },
    {
        "prep duration": 5,
        "prep xp": 56,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 84,
        "duration": 7.5,
        "name": "+40 Potion Strength Tempestae",
        "lvl": 10,
        "reagent values": 610,
        "preparation": "Bottle",
        "sell": 1470,
        "reagents": "Common Limpet"
    },
    {
        "prep duration": 5,
        "prep xp": 59,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 89,
        "duration": 7.5,
        "name": "3 Minute Potion Fear",
        "lvl": 12,
        "reagent values": 150,
        "preparation": "Bottle",
        "sell": 715,
        "reagents": "Veined Globeplant"
    },
    {
        "prep duration": 5,
        "prep xp": 63,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 94,
        "duration": 7.5,
        "name": "5% Potion XP Hopeforest",
        "lvl": 14,
        "reagent values": 260,
        "preparation": "Bottle",
        "sell": 910,
        "reagents": "Tad Apple"
    },
    {
        "prep duration": 5,
        "prep xp": 67,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 100,
        "duration": 7.5,
        "name": "5% Potion XP Mine",
        "lvl": 16,
        "reagent values": 237,
        "preparation": "Bottle",
        "sell": 944,
        "reagents": "Dull Metallic Tooth"
    },
    {
        "prep duration": 5,
        "prep xp": 71,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 106,
        "duration": 7.5,
        "name": "5% Potion XP Crenopolis",
        "lvl": 18,
        "reagent values": 266,
        "preparation": "Bottle",
        "sell": 1180,
        "reagents": "Plain White Pearl"
    },
    {
        "prep duration": 5,
        "prep xp": 82,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 123,
        "duration": 7.5,
        "name": "5% Potion XP Stonemaw Hill",
        "lvl": 23,
        "reagent values": 240,
        "preparation": "Bottle",
        "sell": 892,
        "reagents": "Meat Worm"
    },
    {
        "prep duration": 5,
        "prep xp": 92,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 138,
        "duration": 7.5,
        "name": "25% Potion Healing",
        "lvl": 29,
        "reagent values": 670,
        "preparation": "Bottle",
        "sell": 1870,
        "reagents": "Green Kelp"
    },
    {
        "prep duration": 5,
        "prep xp": 103,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 453,
        "duration": 25,
        "name": "28% Potent Potion Healing",
        "lvl": 35,
        "reagent values": 163,
        "preparation": "Bottle",
        "sell": 1680,
        "reagents": "Gritty Mine Dust"
    },
    {
        "prep duration": 5,
        "prep xp": 121,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 181,
        "duration": 7.5,
        "name": "6% Potion XP Hopeport",
        "lvl": 41,
        "reagent values": 970,
        "preparation": "Bottle",
        "sell": 2370,
        "reagents": "Bowl Shell"
    },
    {
        "prep duration": 5,
        "prep xp": 138,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 605,
        "duration": 25,
        "name": "7% Potent Potion XP Hopeport",
        "lvl": 50,
        "reagent values": 1150,
        "preparation": "Bottle",
        "sell": 3930,
        "reagents": "Bladder Wrack"
    },
    {
        "prep duration": 5,
        "prep xp": 155,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 232,
        "duration": 7.5,
        "name": "+50 Potion Strength Arborae",
        "lvl": 56,
        "reagent values": 1330,
        "preparation": "Bottle",
        "sell": 3180,
        "reagents": "Crimson Bellplant"
    },
    {
        "prep duration": 5,
        "prep xp": 174,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 762,
        "duration": 25,
        "name": "+60 Potent Potion Strength Arborae",
        "lvl": 62,
        "reagent values": 450,
        "preparation": "Bottle",
        "sell": 2860,
        "reagents": "Bristled Catkin"
    },
    {
        "prep duration": 5,
        "prep xp": 203,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 304,
        "duration": 7.5,
        "name": "+50 Potion Strength Cryonae",
        "lvl": 68,
        "reagent values": 1510,
        "preparation": "Bottle",
        "sell": 4060,
        "reagents": "Clingy Starfish"
    },
    {
        "prep duration": 5,
        "prep xp": 232,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 1017,
        "duration": 25,
        "name": "+60 Potent Potion Strength Cryonae",
        "lvl": 77,
        "reagent values": 413,
        "preparation": "Bottle",
        "sell": 3340,
        "reagents": "White Clover"
    },
    {
        "prep duration": 5,
        "prep xp": 260,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 390,
        "duration": 7.5,
        "name": "+50 Potion Strength Tempestae",
        "lvl": 83,
        "reagent values": 1630,
        "preparation": "Bottle",
        "sell": 4600,
        "reagents": "Purple Hogberries"
    },
    {
        "prep duration": 5,
        "prep xp": 292,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 1282,
        "duration": 25,
        "name": "+60 Potent Potion Strength Tempestae",
        "lvl": 89,
        "reagent values": 683,
        "preparation": "Bottle",
        "sell": 4010,
        "reagents": "Purple Orchid"
    },
    {
        "prep duration": 5,
        "prep xp": 340,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 510,
        "duration": 7.5,
        "name": "6 Minute Potion Fear",
        "lvl": 95,
        "reagent values": 878,
        "preparation": "Bottle",
        "sell": 3090,
        "reagents": "Sunshine Dandelion"
    },
    {
        "prep duration": 5,
        "prep xp": 389,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 1711,
        "duration": 25,
        "name": "9 Minute Potent Potion Fear",
        "lvl": 104,
        "reagent values": 180,
        "preparation": "Bottle",
        "sell": 3470,
        "reagents": "Glutinous Sucker"
    },
    {
        "prep duration": 5,
        "prep xp": 437,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 655,
        "duration": 7.5,
        "name": "6% Potion XP Hopeforest",
        "lvl": 110,
        "reagent values": 1270,
        "preparation": "Bottle",
        "sell": 3940,
        "reagents": "Myrtle Apple"
    },
    {
        "prep duration": 5,
        "prep xp": 490,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 2156,
        "duration": 25,
        "name": "7% Potent Potion XP Hopeforest",
        "lvl": 116,
        "reagent values": 1160,
        "preparation": "Bottle",
        "sell": 5780,
        "reagents": "Hairy Dock Leaf"
    },
    {
        "prep duration": 5,
        "prep xp": 572,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 858,
        "duration": 7.5,
        "name": "6% Potion XP Mine",
        "lvl": 122,
        "reagent values": 2190,
        "preparation": "Bottle",
        "sell": 6310,
        "reagents": "Jagged Metallic Tooth"
    },
    {
        "prep duration": 5,
        "prep xp": 654,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 2877,
        "duration": 25,
        "name": "7% Potent Potion XP Mine",
        "lvl": 131,
        "reagent values": 277,
        "preparation": "Bottle",
        "sell": 4370,
        "reagents": "Brittle Cockroach Mandible"
    },
    {
        "prep duration": 5,
        "prep xp": 735,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 1102,
        "duration": 7.5,
        "name": "6% Potion XP Crenopolis",
        "lvl": 137,
        "reagent values": 1610,
        "preparation": "Bottle",
        "sell": 4830,
        "reagents": "Blacksour Grapes"
    },
    {
        "prep duration": 5,
        "prep xp": 824,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 3625,
        "duration": 25,
        "name": "7% Potent Potion XP Crenopolis",
        "lvl": 143,
        "reagent values": 1280,
        "preparation": "Bottle",
        "sell": 7170,
        "reagents": "Red Cabbage"
    },
    {
        "prep duration": 5,
        "prep xp": 932,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 1442,
        "duration": 7.5,
        "name": "6% Potion XP Stonemaw Hill",
        "lvl": 149,
        "reagent values": 454,
        "preparation": "Bottle",
        "sell": 3510,
        "reagents": "Cave Toadstool"
    },
    {
        "prep duration": 5,
        "prep xp": 1100,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 4840,
        "duration": 25,
        "name": "7% Potent Potion XP Stonemaw Hill",
        "lvl": 158,
        "reagent values": 1060,
        "preparation": "Bottle",
        "sell": 6320,
        "reagents": "Orange Centipede"
    },
    {
        "prep duration": 5,
        "prep xp": 1235,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 1852,
        "duration": 7.5,
        "name": "32% Potion Healing",
        "lvl": 164,
        "reagent values": 1810,
        "preparation": "Bottle",
        "sell": 5510,
        "reagents": "Silver Kelp"
    },
    {
        "prep duration": 5,
        "prep xp": 1386,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 6097,
        "duration": 25,
        "name": "35% Potent Potion Healing",
        "lvl": 170,
        "reagent values": 2990,
        "preparation": "Bottle",
        "sell": 11500,
        "reagents": "Fine Mine Dust"
    },
    {
        "prep duration": 5,
        "prep xp": 1617,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 2425,
        "duration": 7.5,
        "name": "8% Potion XP Hopeport",
        "lvl": 176,
        "reagent values": 1490,
        "preparation": "Bottle",
        "sell": 5990,
        "reagents": "Striped Periwinkle"
    },
    {
        "prep duration": 5,
        "prep xp": 1850,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 8138,
        "duration": 25,
        "name": "10% Potent Potion XP Hopeport",
        "lvl": 185,
        "reagent values": 2170,
        "preparation": "Bottle",
        "sell": 9580,
        "reagents": "Blood Nettle"
    },
    {
        "prep duration": 5,
        "prep xp": 2077,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 3115,
        "duration": 7.5,
        "name": "+70 Potion Strength Arborae",
        "lvl": 191,
        "reagent values": 3040,
        "preparation": "Bottle",
        "sell": 7660,
        "reagents": "Starshine Bellplant"
    },
    {
        "prep duration": 5,
        "prep xp": 2404,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 10575,
        "duration": 25,
        "name": "+80 Potent Potion Strength Arborae",
        "lvl": 197,
        "reagent values": 1910,
        "preparation": "Bottle",
        "sell": 9090,
        "reagents": "Fuzzy Catkin"
    },
    {
        "prep duration": 5,
        "prep xp": 2714,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 4070,
        "duration": 7.5,
        "name": "12 Minute Potion Fear",
        "lvl": 209,
        "reagent values": 1600,
        "preparation": "Bottle",
        "sell": 5950,
        "reagents": "Streaky Dandelion"
    },
    {
        "prep duration": 5,
        "prep xp": 3117,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 13713,
        "duration": 25,
        "name": "15 Minute Potent Potion Fear",
        "lvl": 238,
        "reagent values": 3190,
        "preparation": "Bottle",
        "sell": 12900,
        "reagents": "Sucky Sucker"
    },
    {
        "prep duration": 5,
        "prep xp": 3499,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 5248,
        "duration": 7.5,
        "name": "+70 Potion Strength Cryonae",
        "lvl": 258,
        "reagent values": 3600,
        "preparation": "Bottle",
        "sell": 10200,
        "reagents": "Beaded Starfish"
    },
    {
        "prep duration": 5,
        "prep xp": 3905,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 17178,
        "duration": 25,
        "name": "+80 Potent Potion Strength Cryonae",
        "lvl": 277,
        "reagent values": 1830,
        "preparation": "Bottle",
        "sell": 11200,
        "reagents": "Red Clover"
    },
    {
        "prep duration": 5,
        "prep xp": 4485,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 6728,
        "duration": 7.5,
        "name": "+70 Potion Strength Tempestae",
        "lvl": 296,
        "reagent values": 3790,
        "preparation": "Bottle",
        "sell": 11900,
        "reagents": "Red Hogberries"
    },
    {
        "prep duration": 5,
        "prep xp": 5152,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 22667,
        "duration": 25,
        "name": "+80 Potent Potion Strength Tempestae",
        "lvl": 325,
        "reagent values": 2670,
        "preparation": "Bottle",
        "sell": 13600,
        "reagents": "Butterfly Orchid"
    },
    {
        "prep duration": 5,
        "prep xp": 5750,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 8624,
        "duration": 7.5,
        "name": "8% Potion XP Hopeforest",
        "lvl": 344,
        "reagent values": 3810,
        "preparation": "Bottle",
        "sell": 11500,
        "reagents": "Golden Scrumptious Apple"
    },
    {
        "prep duration": 5,
        "prep xp": 6454,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 29815,
        "duration": 25,
        "name": "10% Potent Potion XP Hopeforest",
        "lvl": 364,
        "reagent values": 3510,
        "preparation": "Bottle",
        "sell": 16800,
        "reagents": "Speckled Dock Leaf"
    },
    {
        "prep duration": 5,
        "prep xp": 7413,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 11120,
        "duration": 7.5,
        "name": "8% Potion XP Mine",
        "lvl": 383,
        "reagent values": 5650,
        "preparation": "Bottle",
        "sell": 16900,
        "reagents": "Sharp Metallic Tooth"
    },
    {
        "prep duration": 5,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 46286,
        "duration": 25,
        "name": "10% Potent Potion XP Mine",
        "lvl": 412,
        "reagent values": 4200,
        "preparation": "Bottle",
        "sell": 18500,
        "reagents": "Hardened Cockroach Mandible"
    },
    {
        "prep duration": 5,
        "prep kp": 0.5,
        "kp": 0.9,
        "xp": 24547,
        "duration": 7.5,
        "name": "8% Potion XP Crenopolis",
        "lvl": 431,
        "reagent values": 4410,
        "preparation": "Bottle",
        "sell": 13200,
        "reagents": "Wrath Grapes"
    },
    {
        "prep duration": 5,
        "prep kp": 0.5,
        "kp": 2.5,
        "xp": 58035,
        "duration": 25,
        "name": "10% Potent Potion XP Crenopolis",
        "lvl": 451,
        "reagent values": 3290,
        "preparation": "Bottle",
        "sell": 20200,
        "reagents": "Napa Cabbage"
    },
    {
        "prep duration": 5,
        "prep kp": 0.5,
        "kp": 0.9,
        "duration": 7.5,
        "name": "8% Potion XP Stonemaw Hill",
        "reagent values": 1250,
        "lvl": 470,
        "sell": 9950,
        "preparation": "Bottle",
        "reagents": "Demoncap Toadstool"
    }
]

local p = {}

function p.main()
	local query = {
		'[[Category:Potions]]',
		'[[Uses facility::Standard Potion Station||Potent Potion Station]]',
		'?Profession Level A = lvl',
		'? #- = name',
		'?Uses item #- = preparation',
		'?Uses item.Uses item #- = reagents',
		'?Uses item.Uses item.Value = reagent values',
		'?Value = sell',
		'?Recipe XP = xp',
		'?Uses item.Recipe XP = prep xp',
		'?Recipe KP = kp',
		'?Uses item.Recipe KP = prep kp',
		'?Recipe duration = duration',
		'?Uses item.Recipe duration = prep duration',
		'sort = Profession Level A'
	}
	local results = mw.smw.ask(query)
	
	for i, item in ipairs(results) do
		for k, v in pairs(item) do
			if type(v) == 'table' then
				results[i][k] = v[1]
			end
		end
	end
	
	return '<pre>'..mw.text.jsonEncode(results, mw.text.JSON_PRETTY)..'</pre>'
end

return p