Skip to content

Commit

Permalink
Framework update and new command /wqt test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tercioo committed Dec 12, 2020
1 parent 6677049 commit e47b117
Show file tree
Hide file tree
Showing 6 changed files with 424 additions and 7 deletions.
10 changes: 10 additions & 0 deletions .vscode/bookmarks.json
Original file line number Diff line number Diff line change
Expand Up @@ -188,5 +188,15 @@
"label": ""
}
]
},
{
"path": "$ROOTPATH$\\WorldQuestTracker.lua",
"bookmarks": [
{
"line": 1065,
"column": 2,
"label": ""
}
]
}
]
14 changes: 14 additions & 0 deletions WorldQuestTracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1058,6 +1058,20 @@ function SlashCmdList.WQTRACKER (msg, editbox)
end)
b:SetPoint ("center", UIParent, "center", 0, 0)

elseif (msg == "test") then
local playerLevel = UnitLevel("player")
if (playerLevel < 51) then
WorldQuestTracker:Msg("Character level too low for shadowlands, minimum is 51 for alts.")
end

local bastionQuests = C_TaskQuest.GetQuestsForPlayerByMapID(1533, 1533)
WorldQuestTracker:Msg("Finding quests on Bastion Map")
if (bastionQuests and type(bastionQuests) == "table") then
WorldQuestTracker:Msg("Found quests, amount:", #bastionQuests)
else
WorldQuestTracker:Msg("Blizzard's GetQuestsForPlayerByMapID() returned invalid data.")
end

elseif (msg == "debug") then
WorldQuestTracker.__debug = not WorldQuestTracker.__debug
if (WorldQuestTracker.__debug) then
Expand Down
27 changes: 26 additions & 1 deletion libs/DF/fw.lua
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@


local dversion = 220
local dversion = 223

local major, minor = "DetailsFramework-1.0", dversion
local DF, oldminor = LibStub:NewLibrary (major, minor)
Expand Down Expand Up @@ -2374,6 +2374,7 @@ DF.GlobalWidgetControlNames = {
split_bar = "DF_SplitBarMetaFunctions",
aura_tracker = "DF_AuraTracker",
healthBar = "DF_healthBarMetaFunctions",
timebar = "DF_TimeBarMetaFunctions",
}

function DF:AddMemberForWidget (widgetName, memberType, memberName, func)
Expand Down Expand Up @@ -3509,6 +3510,30 @@ DF.AlliedRaceList = {
[41] = "MagharOrc",
}

local slotIdToIcon = {
[1] = "Interface\\ICONS\\" .. "INV_Helmet_29", --head
[2] = "Interface\\ICONS\\" .. "INV_Jewelry_Necklace_07", --neck
[3] = "Interface\\ICONS\\" .. "INV_Shoulder_25", --shoulder
[5] = "Interface\\ICONS\\" .. "INV_Chest_Cloth_08", --chest
[6] = "Interface\\ICONS\\" .. "INV_Belt_15", --waist
[7] = "Interface\\ICONS\\" .. "INV_Pants_08", --legs
[8] = "Interface\\ICONS\\" .. "INV_Boots_Cloth_03", --feet
[9] = "Interface\\ICONS\\" .. "INV_Bracer_07", --wrist
[10] = "Interface\\ICONS\\" .. "INV_Gauntlets_17", --hands
[11] = "Interface\\ICONS\\" .. "INV_Jewelry_Ring_22", --finger 1
[12] = "Interface\\ICONS\\" .. "INV_Jewelry_Ring_22", --finger 2
[13] = "Interface\\ICONS\\" .. "INV_Jewelry_Talisman_07", --trinket 1
[14] = "Interface\\ICONS\\" .. "INV_Jewelry_Talisman_07", --trinket 2
[15] = "Interface\\ICONS\\" .. "INV_Misc_Cape_19", --back
[16] = "Interface\\ICONS\\" .. "INV_Sword_39", --main hand
[17] = "Interface\\ICONS\\" .. "INV_Sword_39", --off hand
}

function DF:GetArmorIconByArmorSlot(equipSlotId)
return slotIdToIcon[equipSlotId] or ""
end


--> store and return a list of character races, always return the non-localized value
DF.RaceCache = {}
function DF:GetCharacterRaceList (fullList)
Expand Down
1 change: 1 addition & 0 deletions libs/DF/load.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
<Script file="math.lua"/>
<Script file="savedvars.lua"/>
<Script file="languages.lua"/>
<Script file="timebar.lua"/>

<Include file="tutorial_alert.xml"/>
<Include file="split_bar.xml"/>
Expand Down
27 changes: 21 additions & 6 deletions libs/DF/spells.lua
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,6 @@ DF.CooldownsBySpec = {
--marksmanship
[254] = {
[193526] = 1, --Trueshot
[260402] = 1, --Double tap
[186265] = 2, --Aspect of the Turtle
[199483] = 2, --Camouflage (talent)
[109304] = 2, --Exhilaration
Expand Down Expand Up @@ -879,9 +878,7 @@ for specId, cooldownTable in pairs (DF.CooldownsBySpec) do
end

DF.CooldownToClass [spellId] = DF.SpecIds [spellId]

end

end

function DF:FindClassForCooldown (spellId)
Expand All @@ -900,6 +897,15 @@ end
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
--consumables

DF.WeaponEnchantIds = {
[6188] = true, --shadowcore oil
[6190] = true, --embalmer's oil
[6201] = true, --weighted
[6200] = true, --sharpened
[5400] = true, --flametongue
[5401] = true, --windfury
}

DF.FlaskIDs = {
--Shadowlands
[307185] = true, --Spectral Flask of Power
Expand All @@ -914,13 +920,23 @@ DF.FoodIDs = {
--shadowlands tier 1
[259454] = 1, -- (agility) Feast of Gluttonous Hedonism
[308434] = 1, -- (critical) Phantasmal Souffle and Fries
[308397] = 1, --(critical +18) Butterscotch Marinated Ribs
[308400] = 1, --(critical +30) Spinefin Souffle and Fries
[308488] = 1, -- (haste) Tenebrous Crown Roast Aspic
[308404] = 1, -- (haste +18) Cinnamon Bonefish Stew
[308405] = 1, -- (haste +30) Tenebrous Crown Roast Aspic
[308506] = 1, -- (mastery) Crawler Ravioli with Apple Sauce
[308412] = 1, -- (mastery +18) Meaty Apple Dumplings
[308413] = 1, -- (mastery +30) Iridescent Ravioli with Apple Sauce
[308525] = 1, -- (stamina) Banana Beef Pudding
[308414] = 1, -- (stamina +14) Pickled Meat Smoothie
[308415] = 1, -- (stamina +22) Banana Beef Pudding
[308514] = 1, -- (versatility) Steak a la Mode
[327851] = 1, -- (periodicaly heal out of combat) Seraph Tenders
[308637] = 1, -- (periodicaly damage) Smothered Shank
[308425] = 1, -- (versatility +18) Sweet Silvergill Sausages
[308426] = 1, -- (versatility +30) Steak a la Mode
[308419] = 1, -- (periodicaly damage) Smothered Shank
[327715] = 1, -- (speed) Fried Bonefish

}

DF.PotionIDs = {
Expand All @@ -932,7 +948,6 @@ DF.PotionIDs = {
[307162] = true, --Potion of Spectral Intellect
[307494] = true, --Potion of Empowered Exorcisms
[307495] = true, --Potion of Phantom Fire
[307496] = true, --Potion of Divine Awakening
[307161] = true, --Potion of Spiritual Clarity
[307496] = true, --Potion of Divine Awakening
[307501] = true, --Potion of Specter Swiftness
Expand Down
Loading

0 comments on commit e47b117

Please sign in to comment.