Skip to content

Commit

Permalink
fix: more compatibility improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
nulian committed Jul 23, 2024
1 parent 9076b79 commit c4dd428
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions Libraries/MC2ItemStatsLib/MC2ItemStatsLib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,15 +68,15 @@ function Addon.ItemStatsLib._Stats:setToInventoryItem(inventorySlot)
local stats = Addon.TooltipLib:StatsForInventoryItem(inventorySlot)
self:setTooltipStats(stats)

local link = GetInventoryItemLink(inventorySlot)
local link = GetInventoryItemLink("player", inventorySlot)
self:setInfoFromLink(link)
end

function Addon.ItemStatsLib._Stats:setToBagItem(bag, slot)
local stats = Addon.TooltipLib:StatsForBagItem(bag, slot)
self:setTooltipStats(stats)

local link = GetContainerItemLink(bag, slot)
local link = C_Container.GetContainerItemLink(bag, slot)
self:setInfoFromLink(link)
end

Expand All @@ -96,7 +96,7 @@ function Addon.ItemStatsLib._Stats:setTooltipStats(tooltipStats)
end

function Addon.ItemStatsLib._Stats:setInfoFromLink(link)
local name, link, rarity, level, minLevel, type, subType, stackCount, equipLoc, texture, sellPrice = GetItemInfo(link)
local name, link, rarity, level, minLevel, type, subType, stackCount, equipLoc, texture, sellPrice = C_Item.GetItemInfo(link)

self.itemLevel = tonumber(level)
self.minLevel = tonumber(minLevel)
Expand Down
2 changes: 1 addition & 1 deletion OutfitterLDB.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ function Outfitter.LDB:Initialize()
self.LDB = LibStub("LibDataBroker-1.1", true)
self.DataObj = self.LDB:NewDataObject(Outfitter.cTitle,
{
type = "data source",
type = "launcher",
icon = "Interface\\AddOns\\Outfitter\\Textures\\Icon",
text = "Outfitter",
OnClick = function(pFrame, pButton) self:OnClick(pFrame, pButton) end
Expand Down
1 change: 0 additions & 1 deletion OutfitterStrings_fr.lua
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,6 @@ if GetLocale() == "frFR" then
mana = "Mana",
vie = "Health",

["la puissance d'attaque"] = {"Attack", "RangedAttack"},
["toutes les caractéristiques"] = {"Stamina", "Intellect", "Agility", "Strength", "Spirit"},

["sorts et effets magiques"] = {"SpellDmg", "FireDmg", "ShadowDmg", "FrostDmg", "ArcaneDmg", "NatureDmg"},
Expand Down

0 comments on commit c4dd428

Please sign in to comment.