Adjusted the order of runes
Wobin [06-03-14 - 12:33]
Adjusted the order of runes
diff --git a/MrPlow.lua b/MrPlow.lua
index bfcec22..1fc306d 100644
--- a/MrPlow.lua
+++ b/MrPlow.lua
@@ -83,6 +83,13 @@ local ITEM_TYPE_ORDER = {
[ITEMTYPE_WEAPON_TRAIT] = 35,
}
+local ENCHANTING_RUNE_ORDER = {
+ [ENCHANTING_RUNE_POTENCY] = 1,
+ [ENCHANTING_RUNE_ESSENCE] = 2,
+ [ENCHANTING_RUNE_ASPECT] = 3,
+ [ENCHANTING_RUNE_NONE] = 4,
+}
+
function MrPlow:Loaded(...)
local eventCode, addonName = ...
if addonName ~= "MrPlow" then return end
@@ -134,7 +141,7 @@ end
function MrPlow:CraftingType(slotType, bag, index)
if watchedSlots[slotType] then
local _, _, extra1 = GetItemCraftingInfo(bag, index)
- return extra1 or 0
+ return ENCHANTING_RUNE_ORDER[extra1 or 4]
end
end