WOW_Collection_System/CreatureDisplay.lua
2025-06-07 20:38:25 +08:00

84 lines
3.9 KiB
Lua

-- --CreatureDisplay.lua
-- SM_Collections = {}
-- -- 独立的生物显示ID获取函数
-- function SM_Collections:GetCreatureDisplayID(itemID, itemType)
-- if itemType == "mount" then
-- -- 使用新的坐骑数据系统
-- local mountInfo = self:GetMountInfo(itemID)
-- if mountInfo then
-- return mountInfo -- 第一个返回值就是 creatureDisplayID
-- end
-- elseif itemType == "companion" then
-- -- 为小伙伴保留原有的映射方式
-- local companionMap = {
-- [54321] = 328, -- 猫
-- [54322] = 1126, -- 狗
-- [54323] = 721, -- 兔子
-- [54324] = 1516, -- 鸟
-- }
-- return companionMap[itemID] or itemID
-- elseif itemType == "card" then
-- -- 为卡牌保留原有的映射方式
-- local cardMap = {
-- [99999] = 11121, -- 拉格纳罗斯
-- [99998] = 15654, -- 巫妖王
-- [99997] = 15990, -- 死亡之翼
-- [99996] = 21135, -- 伊利丹
-- }
-- return cardMap[itemID] or itemID
-- end
-- -- 默认返回原始ID
-- return itemID
-- end
-- -- 获取坐骑额外信息的函数
-- function SM_Collections:GetMountInfoExtra(spellID)
-- local mountInfo = self:GetMountInfo(spellID)
-- if mountInfo then
-- local creatureDisplayID, mountType, flags, name, description, sourceType, sourceText = unpack(mountInfo, 1, 7)
-- local isSelfMount = bit.band(flags or 0, 0x2) ~= 0
-- return creatureDisplayID, description or "", sourceText or "", isSelfMount, ""
-- end
-- return nil
-- end
-- function SM_Collections:GetMountInfo(spellID)
-- local info = SM_Collections.Mounts[spellID];
-- if info then
-- return unpack(info, 1, 9);
-- end
-- end
-- SM_Collections.Mounts =
-- {
-- [458] = { 284, 2, 0, "Brown Horse", "A favorite among Stormwind's guards thanks to its patience and stamina.", 2, "|cFFFFD200Vendor: |rWorld Vendors|n|cFFFFD200Cost: |r1|TINTERFACE\\MONEYFRAME\\UI-GOLDICON.BLP:0|t" },
-- [459] = { 4268, 2, 64, "Gray Wolf", "This breed of wolf prefers hunting in the fog, relying on its smoky hide to camouflage it from unsuspecting prey.", 2, "|cFFFFD200Vendor: |rOgunaro Wolfrunner|n|cFFFFD200Zone: |rOrgrimmar|n|cFFFFD200Cost: |r1|TINTERFACE\\MONEYFRAME\\UI-GOLDICON.BLP:0|t" },
-- [468] = { 305, 2, 64, "White Stallion", "The powerful and unyielding white stallion features heavily in the myths of ancient human tribes.", 2, "|cFFFFD200Legacy|r" },
-- [470] = { 308, 2, 0, "Black Stallion", "Rumored to be favored by SI:7 for night missions due to its dark coat.", 2, "|cFFFFD200Vendor: |rUnger Statforth|n|cFFFFD200Zone: |rWetlands|n|cFFFFD200Cost: |r1|TINTERFACE\\MONEYFRAME\\UI-GOLDICON.BLP:0|t" },
-- [471] = { 306, 0, },
-- [472] = { 307, 2, 0, "Pinto", "Its calm temperament makes it ideal to train young children in horseback riding.", 2, "|cFFFFD200Vendor: |rWorld Vendors|n|cFFFFD200Cost: |r1|TINTERFACE\\MONEYFRAME\\UI-GOLDICON.BLP:0|t" },
-- [578] = { 356, 2, 64, "Black Wolf", "Can howl loudly enough to be heard for miles.", 2, "|cFFFFD200Vendor: |rOgunaro Wolfrunner|n|cFFFFD200Zone: |rOrgrimmar|n|cFFFFD200Cost: |r1|TINTERFACE\\MONEYFRAME\\UI-GOLDICON.BLP:0|t" },
-- [579] = { 4270, 2, 64, "Red Wolf", "Almost none remain in the whole of Azeroth; only the most experienced will have seen one.", 2, "|cFFFFD200Legacy|r" },
-- [580] = { 358, 2, 0, "Timber Wolf", "Can howl loudly enough to be heard for miles.", 2, "|cFFFFD200Vendor: |rOgunaro Wolfrunner|n|cFFFFD200Zone: |rOrgrimmar|n|cFFFFD200Cost: |r1|TINTERFACE\\MONEYFRAME\\UI-GOLDICON.BLP:0|t" },
-- [581] = { 359, 2, 64, "Winter Wolf", "Ancient furbolg legends claim that wolves born with a white coat are blessed by Azeroth's two moons.", 2, "|cFFFFD200Legacy|r" },
-- [3363] = { 16597, 1, },
-- };