ID1018691】

【好感度】背包里所有5星好感度都满了,好感度入口还显示红点
dev_chengFeng
jiaoyangna 2021-10-09 11:06:59 +08:00
parent 845373e12d
commit 8b13f803c8
2 changed files with 7 additions and 1 deletions

View File

@ -185,6 +185,7 @@ function this.UpdateHeroDatas(_msgHeroData, isFindHandBook)
if isFindHandBook then --图鉴
PlayerManager.SetHeroHandBookListData(heroData.id, heroData.star)
CheckRedPointStatus(RedPointType.wujinBianDui)
CheckRedPointStatus(RedPointType.LikeabilityRed)
CheckRedPointStatus(RedPointType.EndlessPanel)
end
heroData.warPower = 0--HeroPowerManager.GetHeroPower(heroData.dynamicId)

View File

@ -293,7 +293,12 @@ function this.CheckRedPot()
for k,v in pairs(this.ItemList) do
local num = BagManager.GetItemCountById(k)
if num > 0 then
return true
--计算玩家拥有的英雄中对应星级的英雄的数量
for i, v in pairs(PlayerManager.heroHandBook) do
if not this.CheckIsMaxLv(i) then
return true
end
end
end
end
end