parent
845373e12d
commit
8b13f803c8
|
@ -185,6 +185,7 @@ function this.UpdateHeroDatas(_msgHeroData, isFindHandBook)
|
||||||
if isFindHandBook then --图鉴
|
if isFindHandBook then --图鉴
|
||||||
PlayerManager.SetHeroHandBookListData(heroData.id, heroData.star)
|
PlayerManager.SetHeroHandBookListData(heroData.id, heroData.star)
|
||||||
CheckRedPointStatus(RedPointType.wujinBianDui)
|
CheckRedPointStatus(RedPointType.wujinBianDui)
|
||||||
|
CheckRedPointStatus(RedPointType.LikeabilityRed)
|
||||||
CheckRedPointStatus(RedPointType.EndlessPanel)
|
CheckRedPointStatus(RedPointType.EndlessPanel)
|
||||||
end
|
end
|
||||||
heroData.warPower = 0--HeroPowerManager.GetHeroPower(heroData.dynamicId)
|
heroData.warPower = 0--HeroPowerManager.GetHeroPower(heroData.dynamicId)
|
||||||
|
|
|
@ -293,11 +293,16 @@ function this.CheckRedPot()
|
||||||
for k,v in pairs(this.ItemList) do
|
for k,v in pairs(this.ItemList) do
|
||||||
local num = BagManager.GetItemCountById(k)
|
local num = BagManager.GetItemCountById(k)
|
||||||
if num > 0 then
|
if num > 0 then
|
||||||
|
--计算玩家拥有的英雄中对应星级的英雄的数量
|
||||||
|
for i, v in pairs(PlayerManager.heroHandBook) do
|
||||||
|
if not this.CheckIsMaxLv(i) then
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue