Pet container rewritten

This commit is contained in:
Tercio Jose
2024-06-14 18:30:20 -03:00
committed by andrew6180
parent 85fff228df
commit f6c59381ab
25 changed files with 784 additions and 469 deletions
+19
View File
@@ -99,6 +99,7 @@ do
---@type table<number, customiteminfo>
local customItemList = {}
Details222.CustomItemList = customItemList
local iconSize = 14
local coords = {0.14, 0.86, 0.14, 0.86}
@@ -139,6 +140,24 @@ do
[8] = {name = Loc ["STRING_ENVIRONMENTAL_SLIME"], icon = [[Interface\ICONS\Ability_Creature_Poison_02]]},
}
function Details222.Pets.GetPetNameFromCustomSpells(petName, spellId, npcId)
---@type customiteminfo
local customItem = Details222.CustomItemList[spellId]
if (customItem and customItem.isSummon) then
local defaultName = customItem.defaultName
if (defaultName) then
petName = defaultName
if (customItem.nameExtra) then
petName = petName .. " " .. customItem.nameExtra
end
return petName
end
end
return petName
end
if (LIB_OPEN_RAID_SPELL_CUSTOM_NAMES) then
for spellId, customTable in pairs(LIB_OPEN_RAID_SPELL_CUSTOM_NAMES) do
local customName = customTable.name