comparison Modules/ProspectMe_Tables.lua @ 58:f9b6c0305908

Added an integrity check to incoming data to make sure the ItemID is a valid ore/herb Updated tooltips to allow hiding of the economics data (in addition to the existing toggles for granular results) Updated tooltips to give better hints when the player hasn't prospected/milled an item before
author Vynn <mischivin@gmail.com>
date Mon, 28 Nov 2016 12:09:11 -0500
parents
children
comparison
equal deleted inserted replaced
57:8d7cc246ec11 58:f9b6c0305908
1 local function Initialize ()
2
3 --clear out tables before setting them fresh on load
4 ProspectMe.Tables = {}
5
6 ProspectMe.Tables.Herbs = {
7 [765] = 1, -- Silverleaf
8 [785] = 0, -- Mageroyal
9 [2447] = 1, -- Peacebloom
10 [2449] = 1, -- Earthroot
11 [2450] = 25, -- Briarthorn
12 [2452] = 25, -- Swiftthistle
13 [2453] = 25, -- Bruiseweed
14 [3355] = 75, -- Wild Steelbloom
15 [3356] = 75, -- Kingsblood
16 [3357] = 75, -- Liferoot
17 [3358] = 125, -- Khadgar's Whisker
18 [3369] = 75, -- Grave Moss
19 [3818] = 125, -- Fadeleaf
20 [3819] = 125, -- Dragon's Teeth
21 [3820] = 25, -- Stranglekelp
22 [3821] = 125, -- Goldthorn
23 [4625] = 175, -- Firebloom
24 [8831] = 175, -- Purple Lotus
25 [8836] = 175, -- Arthas' Tears
26 [8838] = 175, -- Sungrass
27 [8839] = 175, -- Blindweed
28 [8845] = 175, -- Ghost Mushroom
29 [8846] = 175, -- Gromsblood
30 [13463] = 225, -- Dreamfoil
31 [13464] = 225, -- Golden Sansam
32 [13465] = 225, -- Mountain Silversage
33 [13466] = 225, -- Sorrowmoss
34 [13467] = 200, -- Icecap
35 [22785] = 275, -- Felweed
36 [22786] = 275, -- Dreaming Glory
37 [22787] = 275, -- Ragveil
38 [22789] = 275, -- Terocone
39 [22790] = 275, -- Ancient Lichen
40 [22791] = 275, -- Netherbloom
41 [22792] = 275, -- Nightmare Vine
42 [22793] = 275, -- Mana Thistle
43 [36901] = 325, -- Goldclover
44 [36903] = 325, -- Adder's Tongue
45 [36904] = 325, -- Tiger Lily
46 [36905] = 325, -- Lichbloom
47 [36906] = 325, -- Icethorn
48 [36907] = 325, -- Talandra's Rose
49 [37921] = 325, -- Deadnettle
50 [39970] = 325, -- Fire Leaf
51 [52983] = 425, -- Cinderbloom
52 [52984] = 425, -- Stormvine
53 [52985] = 450, -- Azshara's Veil
54 [52986] = 450, -- Heartblossom
55 [52987] = 475, -- Twilight Jasmine
56 [52988] = 475, -- Whiptail
57 [72234] = 500, -- Green Tea Leaf
58 [72235] = 500, -- Silkweed
59 [72237] = 500, -- Rain Poppy
60 [79010] = 500, -- Snow Lily
61 [79011] = 500, -- Fool's Cap
62 [89639] = 500, -- Desecrated Herb
63 [109124] = 0, -- Frostweed
64 [109125] = 0, -- Fireweed
65 [109126] = 0, -- Gorgrond Flytrap
66 [109127] = 0, -- Starflower
67 [109128] = 0, -- Nagrand Arrowbloom
68 [109129] = 0, -- Talador Orchid
69 [109130] = 0, -- Chameleon Lotus
70 [124101] = 0, -- Aethril
71 [124102] = 0, -- Dreamleaf
72 [124103] = 0, -- Foxflower
73 [124104] = 0, -- Fjarnskaggl
74 [124105] = 0, -- Starlight Rose
75 [124106] = 0, -- Felwort
76 [128304] = 0, -- Yseralline Seed
77 }
78
79 ProspectMe.Tables.Ores = {
80 [2770] = 1, -- Copper Ore
81 [2771] = 50, -- Tin Ore
82 [2772] = 125, -- Iron Ore
83 [3858] = 175, -- Mithril Ore
84 [10620] = 250, -- Thorium Ore
85 [23424] = 275, -- Fel Iron Ore
86 [23425] = 325, -- Adamantite Ore
87 [36909] = 350, -- Cobalt Ore
88 [36910] = 450, -- Titanium Ore
89 [36912] = 400, -- Saronite Ore
90 [52183] = 500, -- Pyrite Ore
91 [52185] = 475, -- Elementium Ore
92 [53038] = 425, -- Obsidium Ore
93 [72092] = 500, -- Ghost Iron Ore
94 [72093] = 550, -- Kyparite
95 [72094] = 600, -- Black Trillium Ore
96 [72103] = 600, -- White Trillium Ore
97 [123918] = 0, -- Leystone Ore
98 [123919] = 0, -- Felslate
99 }
100
101 end
102
103 local frame = CreateFrame("FRAME", "ProspectMe_Tables")
104 frame:RegisterEvent("VARIABLES_LOADED")
105 frame:SetScript("OnEvent", Initialize)