Skip to content

Commit

Permalink
make gold purses optional
Browse files Browse the repository at this point in the history
  • Loading branch information
justinkb committed Aug 18, 2023
1 parent b647c6e commit 488a21e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
10 changes: 10 additions & 0 deletions Data.lua
Original file line number Diff line number Diff line change
Expand Up @@ -561,6 +561,7 @@ _V["SETTING_CATEGORIES"] = {
{["id"]="DEBUG", ["label"] = "Debug"}
,{["id"]="PROFILES", ["label"] = _L["PROFILES"]}
,{["id"]="GENERAL", ["label"] = GENERAL, ["expanded"] = true}
,{["id"]="GENERAL_DRAGONFLIGHT", ["parentCategory"] = "GENERAL", ["label"] = EXPANSION_NAME9, ["expanded"] = true}
,{["id"]="GENERAL_SHADOWLANDS", ["parentCategory"] = "GENERAL", ["label"] = EXPANSION_NAME8, ["expanded"] = true}
,{["id"]="GENERAL_OLDCONTENT", ["parentCategory"] = "GENERAL", ["label"] = _L["PREVIOUS_EXPANSIONS"]}
,{["id"]="QUESTLIST", ["label"] = _L["QUEST_LIST"]}
Expand Down Expand Up @@ -785,6 +786,14 @@ _V["SETTING_LIST"] = {
,["getValueFunc"] = function() return WQT.settings.list.includeDaily end
}

,{["template"] = "WQT_SettingCheckboxTemplate", ["categoryID"] = "GENERAL_DRAGONFLIGHT", ["label"] = _L["GOLD_PURSES"], ["tooltip"] = _L["GOLD_PURSES_TT"], ["isNew"] = true
, ["valueChangedFunc"] = function(value)
WQT.settings.general.df_goldPurses = value;
WQT_WorldQuestFrame.dataProvider:ReloadQuestRewards();
end
,["getValueFunc"] = function() return WQT.settings.general.df_goldPurses end
}

,{["template"] = "WQT_SettingCheckboxTemplate", ["categoryID"] = "GENERAL_SHADOWLANDS", ["label"] = _L["CALLINGS_BOARD"], ["tooltip"] = _L["CALLINGS_BOARD_TT"], ["isNew"] = true
, ["valueChangedFunc"] = function(value)
WQT.settings.general.sl_callingsBoard = value;
Expand Down Expand Up @@ -1448,6 +1457,7 @@ _V["WQT_DEFAULTS"] = {
bountySelectedOnly = true;
showDisliked = true;

df_goldPurses = false;
sl_callingsBoard = true;
sl_genericAnimaIcons = false;

Expand Down
2 changes: 1 addition & 1 deletion Dataprovider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ function QuestInfoMixin:LoadRewards(force)
-- Item converting into equipment
self:AddReward(WQT_REWARDTYPE.equipment, ilvl, texture, quality, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardArmor), rewardId);
else
if (rewardId == 199192 or rewardId == 204359 or rewardId == 205226) then
if (WQT.settings.general.df_goldPurses and (rewardId == 199192 or rewardId == 204359 or rewardId == 205226)) then
self:AddReward(WQT_REWARDTYPE.gold, 525*100*100, 133784, 1, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardGold));
else
self:AddReward(WQT_REWARDTYPE.item, numItems, texture, quality, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardItem), rewardId);
Expand Down
2 changes: 2 additions & 0 deletions Locals.lua
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ L["FORMAT_GROUP_SEARCH"] = "Type |cFFFFFFFF%d|r to search for a group for this q
L["FORMAT_GROUP_TYPO"] = "It appears to have made a typo. Type either |cFFFFFFFF%d|r, or |cFFFFFFFF%s|r."
L["GENERIC_ANIMA"] = "Matching Anima Textures"
L["GENERIC_ANIMA_TT"] = "Replace the different anima item textures with matching ones, much like Azerite had. This only affects map icons and the quest list."
L["GOLD_PURSES"] = "Gold Racer's Purses"
L["GOLD_PURSES_TT"] = "Treat Dragon Racer's Purses as gold rewards."
L["GROUP_SEARCH_INFO"] = "Blizzard prevents add-ons from automatically looking for a group for the majority of world quests. Because of this, players have to manually fill in the search box."
L["INCLUDE_DAILIES"] = "Include Dailies"
L["INCLUDE_DAILIES_TT"] = "Treat certain dailies as world quests. Only affects dailies which Blizzard themselves treats as world quests."
Expand Down

0 comments on commit 488a21e

Please sign in to comment.