【心愿】判断神将是否加入版本
parent
2b413264fd
commit
0ec5cf102a
|
@ -540,7 +540,12 @@ function this.GetCurHeroList(curIndex)
|
||||||
local heroList = {}
|
local heroList = {}
|
||||||
local time = (GetTimeStamp() - RecruitManager.openTime)/(60*60*24)--开服时间戳或是0(用于判断心愿神将是否加入卡池)
|
local time = (GetTimeStamp() - RecruitManager.openTime)/(60*60*24)--开服时间戳或是0(用于判断心愿神将是否加入卡池)
|
||||||
for index, v in ipairs(RecruitManager.GetRewardPreviewData(PRE_REWARD_POOL_TYPE.RECRUIT)) do
|
for index, v in ipairs(RecruitManager.GetRewardPreviewData(PRE_REWARD_POOL_TYPE.RECRUIT)) do
|
||||||
if heroConfig[v.Reward[1]].Star == 5 and heroConfig[v.Reward[1]].PropertyName == curIndex and heroConfig[v.Reward[1]].Weight > 0 and time > heroConfig[v.Reward[1]].JoinWishDay then
|
if heroConfig[v.Reward[1]].Star == 5
|
||||||
|
and heroConfig[v.Reward[1]].PropertyName == curIndex
|
||||||
|
and heroConfig[v.Reward[1]].Weight > 0
|
||||||
|
and time > heroConfig[v.Reward[1]].JoinWishDay
|
||||||
|
and HeroManager.InVersion(v.Reward[1]) -- 判断神将是否加入版本
|
||||||
|
then
|
||||||
table.insert(heroList,v)
|
table.insert(heroList,v)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue