【云游商人】不同神将穿戴同一品质装备,弹窗显示的都是一个神将名
parent
bdc85fea41
commit
fbb58dbfdc
|
|
@ -663,7 +663,7 @@ function this.GMCallBackData(drop)
|
|||
-- TalismanManager.InitUpdateSingleTalismanData(drop.especialEquipId[i])
|
||||
-- end
|
||||
-- end
|
||||
LogBlue("drop.soulEquip:"..#drop.soulEquip)
|
||||
-- LogBlue("drop.soulEquip:"..#drop.soulEquip)
|
||||
if (#drop.soulEquip > 0) then
|
||||
--SoulPrintManager.InitServerData(drop.soulEquip)
|
||||
EquipTreasureManager.InitAllEquipTreasure(drop.soulEquip)
|
||||
|
|
|
|||
|
|
@ -3818,6 +3818,20 @@ function this.GetHeroIdByEquipId(_id)
|
|||
end
|
||||
end
|
||||
|
||||
--通过装备id找英雄idList
|
||||
function this.GetHeroIdListByEquipId(_id)
|
||||
local heroList = {}
|
||||
for _, heroData in ipairs(this.heroDataLists) do
|
||||
for i = 1, #heroData.equipIdList do
|
||||
if _id == tonumber(heroData.equipIdList[i]) then
|
||||
-- return heroData.name
|
||||
table.insert(heroList,heroData.name)
|
||||
end
|
||||
end
|
||||
end
|
||||
return heroList
|
||||
end
|
||||
|
||||
function this.CheckIsUpTreasure(Did,index)
|
||||
if not Did then
|
||||
return false
|
||||
|
|
|
|||
|
|
@ -141,7 +141,7 @@ function this:ShowSingleData(item,sdata,index)
|
|||
end
|
||||
end)
|
||||
Util.AddOnceClick(equiped,function ()
|
||||
MsgPanel.ShowTwo(string.format("<size=45><color=#00FF66>%s</color>穿戴该装备,是否前往卸下?</size>",HeroManager.GetHeroIdByEquipId(sdata.Id)),function() end,function()
|
||||
MsgPanel.ShowTwo(string.format("<size=45><color=#00FF66>%s</color>穿戴该装备,是否前往卸下?</size>",HeroManager.GetHeroIdListByEquipId(sdata.Id)[index]),function() end,function()
|
||||
JumpManager.GoJump(22001)
|
||||
end,"取消","确定")
|
||||
end)
|
||||
|
|
|
|||
Loading…
Reference in New Issue