Mercurial > wow > prospect-me
changeset 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 | 71cd3f481599 |
children | a35539b8e151 |
files | ProspectMe.lua |
diffstat | 1 files changed, 10 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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)