# HG changeset patch # User Vynn # Date 1479275101 18000 # Node ID b267cddd64968d0269f19157aec1bedaad45d0d6 # Parent 71cd3f4815998070858b64fd01e4776c8500b69a Globalized a couple of constant variables within the ProspectMe scope. diff -r 71cd3f481599 -r b267cddd6496 ProspectMe.lua --- a/ProspectMe.lua Tue Nov 15 13:55:45 2016 -0500 +++ b/ProspectMe.lua Wed Nov 16 00:45:01 2016 -0500 @@ -19,9 +19,6 @@ local MASS_PROSPECT_LEYSTONE = GetSpellInfo(MASS_PROSPECT_LEYSTONE_SPELLID) local MASS_MILLING_YSERALLINE = GetSpellInfo(MASS_MILLING_YSERALLINE_SPELLID) -local ORE = select(7,GetItemInfo(123918)) -- Get Ore Subclass from a known quantity (leystone ore) -local HERB = select(7,GetItemInfo(128304)) -- Get Herb Subclass from a known quantity (yseralline seed) - local VALIDSPELLS = { [PROSPECT] = true, [MILLING] = true, @@ -65,6 +62,16 @@ end ProspectMe.Session = {} + --[[ + Sets Global Constants + ]] + if not ProspectMe.Vars then + ProspectMe.Vars = {} + end + ProspectMe.Vars.ORE = select(7,GetItemInfo(123918)) -- Get Ore Subclass from a known quantity (leystone ore) + ProspectMe.Vars.HERB = select(7,GetItemInfo(128304)) -- Get Herb Subclass from a known quantity (yseralline seed) + + ProspectMe.Debug = function (...) for k, v in pairs(...) do print("key: " .. k " | value: " .. v)