Advertisement
ScratchMonkey

Altoholic diff from 2024-08-14 to 2024-10-12

Oct 12th, 2024
200
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 2.82 KB | Gaming | 0 0
  1. diff --git a/Altoholic/Services/Tooltip.lua b/Altoholic/Services/Tooltip.lua
  2. index 2771c80e..2107d33a 100644
  3. --- a/Altoholic/Services/Tooltip.lua
  4. +++ b/Altoholic/Services/Tooltip.lua
  5. @@ -7,6 +7,8 @@ local LOI = LibStub("LibObjectInfo-1.0")
  6.  local MVC = LibStub("LibMVC-1.0")
  7.  local AccountSharing = MVC:GetService("AltoholicUI.AccountSharing")
  8.  
  9. +local GetItemInfo = C_Item.GetItemInfo
  10. +
  11.  local storedLink = nil
  12.  local options
  13.  
  14. @@ -90,7 +92,8 @@ local function GetRealmsList(isAccountBound)
  15.     local realms = {}
  16.     table.insert(realms, DataStore.ThisRealm)       -- always "this realm" first
  17.    
  18. -   if isAccountBound and options["ShowAllRealmsCount"] then
  19. +   -- if isAccountBound and options["ShowAllRealmsCount"] then
  20. +   if options["ShowAllRealmsCount"] then
  21.         for realm, _ in pairs(DataStore:GetRealms()) do
  22.             if realm ~= DataStore.ThisRealm then
  23.                 table.insert(realms, realm)
  24. diff --git a/DataStore_Containers/DataStore_Containers.lua b/DataStore_Containers/DataStore_Containers.lua
  25. index 30415348..3e7c0d75 100644
  26. --- a/DataStore_Containers/DataStore_Containers.lua
  27. +++ b/DataStore_Containers/DataStore_Containers.lua
  28. @@ -15,7 +15,7 @@ local thisCharacter
  29.  local thisCharacterBank
  30.  
  31.  local DataStore, tonumber, wipe, type, time, C_Container = DataStore, tonumber, wipe, type, time, C_Container
  32. -local GetTime, GetInventoryItemTexture, GetInventoryItemLink, GetItemInfo = GetTime, GetInventoryItemTexture, GetInventoryItemLink, GetItemInfo
  33. +local GetTime, GetInventoryItemTexture, GetInventoryItemLink, GetItemInfo = GetTime, GetInventoryItemTexture, GetInventoryItemLink, C_Item.GetItemInfo
  34.  local log = math.log
  35.  local isRetail = (WOW_PROJECT_ID == WOW_PROJECT_MAINLINE)
  36.  
  37. diff --git a/DataStore_Garrisons/API/Shipments.lua b/DataStore_Garrisons/API/Shipments.lua
  38. index b34b4d68..96ac6852 100644
  39. --- a/DataStore_Garrisons/API/Shipments.lua
  40. +++ b/DataStore_Garrisons/API/Shipments.lua
  41. @@ -7,6 +7,7 @@ local addonName, addon = ...
  42.  local thisCharacter
  43.  
  44.  local DataStore, pairs, C_Garrison = DataStore, pairs, C_Garrison
  45. +local GetItemInfo = GetItemInfo or C_Item.GetItemInfo
  46.  
  47.  local bit64 = LibStub("LibBit64")
  48.  
  49. diff --git a/DataStore_Stats/DataStore_Stats.lua b/DataStore_Stats/DataStore_Stats.lua
  50. index 6519c7c2..38e04a61 100644
  51. --- a/DataStore_Stats/DataStore_Stats.lua
  52. +++ b/DataStore_Stats/DataStore_Stats.lua
  53. @@ -174,7 +174,9 @@ local function ScanMythicPlusBestForMapInfo()
  54.     char.lastUpdate = time()
  55.  end
  56.  
  57. -local rewardFields = { "MythicPlusReward", "RankedPvPReward", "RaidReward" }
  58. +-- https://warcraft.wiki.gg/wiki/Enum.WeeklyRewardChestThresholdType
  59. +local rewardFields = { "MythicPlusReward", "RankedPvPReward", "RaidReward",
  60. +   "AlsoReceiveReward", "ConcessionReward", "WorldReward" }
  61.  
  62.  local function ScanRewardType(rewardType)
  63.     -- https://wowpedia.fandom.com/wiki/API_C_WeeklyRewards.GetActivities
  64.  
Tags: WoW Warcraft
Advertisement
Comments
  • ScratchMonkey
    39 days
    # text 0.25 KB | 0 0
    1. I haven't fixed the TWW issue with characters not showing up in the summary because I haven't bought TWW and it doesn't affect me. This is for retail, but it might work for Classic. I don't know if Classic has moved all the APIs into namespaces like retail did.
Add Comment
Please, Sign In to add comment
Advertisement