comparison ProspectMe.lua @ 45:b267cddd6496 Prospect Me 2

Globalized a couple of constant variables within the ProspectMe scope.
author Vynn <mischivin@gmail.com>
date Wed, 16 Nov 2016 00:45:01 -0500
parents b8686c36477f
children f9b6c0305908
comparison
equal deleted inserted replaced
44:71cd3f481599 45:b267cddd6496
16 local PROSPECT = GetSpellInfo(PROSPECT_SPELLID) 16 local PROSPECT = GetSpellInfo(PROSPECT_SPELLID)
17 local MILLING = GetSpellInfo(MILLING_SPELLID) 17 local MILLING = GetSpellInfo(MILLING_SPELLID)
18 local MASS_PROSPECT_FELSLATE = GetSpellInfo(MASS_PROSPECT_FELSLATE_SPELLID) 18 local MASS_PROSPECT_FELSLATE = GetSpellInfo(MASS_PROSPECT_FELSLATE_SPELLID)
19 local MASS_PROSPECT_LEYSTONE = GetSpellInfo(MASS_PROSPECT_LEYSTONE_SPELLID) 19 local MASS_PROSPECT_LEYSTONE = GetSpellInfo(MASS_PROSPECT_LEYSTONE_SPELLID)
20 local MASS_MILLING_YSERALLINE = GetSpellInfo(MASS_MILLING_YSERALLINE_SPELLID) 20 local MASS_MILLING_YSERALLINE = GetSpellInfo(MASS_MILLING_YSERALLINE_SPELLID)
21
22 local ORE = select(7,GetItemInfo(123918)) -- Get Ore Subclass from a known quantity (leystone ore)
23 local HERB = select(7,GetItemInfo(128304)) -- Get Herb Subclass from a known quantity (yseralline seed)
24 21
25 local VALIDSPELLS = { 22 local VALIDSPELLS = {
26 [PROSPECT] = true, 23 [PROSPECT] = true,
27 [MILLING] = true, 24 [MILLING] = true,
28 [MASS_PROSPECT_LEYSTONE] = true, 25 [MASS_PROSPECT_LEYSTONE] = true,
62 end 59 end
63 if not ProspectMe.Results then 60 if not ProspectMe.Results then
64 ProspectMe.Results = {} 61 ProspectMe.Results = {}
65 end 62 end
66 ProspectMe.Session = {} 63 ProspectMe.Session = {}
64
65 --[[
66 Sets Global Constants
67 ]]
68 if not ProspectMe.Vars then
69 ProspectMe.Vars = {}
70 end
71 ProspectMe.Vars.ORE = select(7,GetItemInfo(123918)) -- Get Ore Subclass from a known quantity (leystone ore)
72 ProspectMe.Vars.HERB = select(7,GetItemInfo(128304)) -- Get Herb Subclass from a known quantity (yseralline seed)
73
67 74
68 ProspectMe.Debug = function (...) 75 ProspectMe.Debug = function (...)
69 for k, v in pairs(...) do 76 for k, v in pairs(...) do
70 print("key: " .. k " | value: " .. v) 77 print("key: " .. k " | value: " .. v)
71 end 78 end