Skip to content

Commit

Permalink
Minor optimization.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tga123 authored Oct 19, 2023
1 parent bf5aaee commit 5e0f01e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dataprovider.lua
Original file line number Diff line number Diff line change
Expand Up @@ -240,12 +240,11 @@ function QuestInfoMixin:LoadRewards(force)
elseif (typeID == 0 and subTypeID == 8 and price == 0 and ilvl > 100) then
-- Item converting into equipment
self:AddReward(WQT_REWARDTYPE.equipment, ilvl, texture, quality, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardArmor), rewardId);
elseif (rewardId == 199192 or rewardId == 204359 or rewardId == 205226) and WQT.settings.general.df_goldPurses then
--Treat dragon racer's purse rewards as gold.
self:AddReward(WQT_REWARDTYPE.gold, 525*100*100, 133784, 1, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardGold));
else
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);
end
self:AddReward(WQT_REWARDTYPE.item, numItems, texture, quality, WQT_Utils:GetColor(_V["COLOR_IDS"].rewardItem), rewardId);
end
end
end
Expand Down

0 comments on commit 5e0f01e

Please sign in to comment.