forked from TekNoLogic/Buffet
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathConst.lua
More file actions
62 lines (52 loc) · 1.76 KB
/
Copy pathConst.lua
File metadata and controls
62 lines (52 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
local _, ns = ...
-- Local namespace
local Const = {}
Const.DBdefaults = {
macroHP = "#showtooltip\n%MACRO%",
macroMP = "#showtooltip\n%MACRO%",
combat = true,
hearthstone = true,
wellFed = false,
toxicPotion = false,
quietContemplation = false,
modPotion = "",
modConjured = "mod:shift",
modSpecial = "mod:ctrl",
consModPotion = "",
consModConjured = "mod:shift",
consModSpecial = "mod:ctrl",
ignoredItems = {},
showVersion = true
}
Const.MacroNames = {
defaultHP = "AutoHP",
defaultMP = "AutoMP",
foodOnlyHP = "FoodOnlyHP",
drinkOnlyMP = "DrinkOnlyMP",
consumableHP = "ConsumableHP",
consumableMP = "ConsumableMP"
}
Const.ItemDBdefaults = { itemCache = {}, build = 0, nextScanDelay = 1.2, version = 0, customMacros = {} }
Const.BestCategories = {}
Const.BestCategories.bandage = "bandage"
Const.BestCategories.rune = "rune"
Const.BestCategories.hppot = "hppot"
Const.BestCategories.toxicpot = "toxicpot"
Const.BestCategories.mppot = "mppot"
Const.BestCategories.healthstone = "healthstone"
Const.BestCategories.managem = "managem"
Const.BestCategories.water = "water"
Const.BestCategories.food = "food"
Const.BestCategories.percfood = "percfood"
Const.BestCategories.percwater = "percwater"
Const.BestCategories.wellfedfood = "wellfedfood"
Const.BestCategories.wellfedwater = "wellfedwater"
Const.newMacroSource = [[local bests, cache, availables = ... -- Keep this
-- Example for best food with default to hearthstone
local bestfood = bests.conjuredFood or bests.food or 6948
-- For more info see the wiki here:
-- https://github.com/HgAlexx/Buffet/wiki/Custom-Macro:-howto
-- Must return: body [, icon]
return "#showtooltip\n/cast item:" .. bestfood, "INV_Misc_QuestionMark"]]
-- Export
ns.Const = Const