天地烘炉提交

dev_chengFeng
jiaoyangna 2021-11-26 18:10:02 +08:00
parent 4a82bcc664
commit 410fb55f66
1 changed files with 5 additions and 9 deletions

View File

@ -120,14 +120,10 @@ function this:OnShow(_parent,_Data)
local newList = {}
itemList = RecruitManager.GetRewardPreviewData(poolType)
local souls = RecruitManager.GetWishTailsManSoulChips()
for i = 1,#itemList do
for k,v in pairs(souls) do
if itemList[i].Reward[1] == v then
table.insert(newList,itemList[i])
break
end
end
end
for k,v in pairs(souls) do
table.insert(newList,{Reward = {v,1},WeightShow = itemList[k].WeightShow})
end
LogGreen("#newList:"..#newList)
UpItemList = newList
else
UpItemList = RecruitManager.GetRewardPreviewData(poolUpType)
@ -204,7 +200,7 @@ function this:BuildRateData(actType,UpItem,upItemList)
elseif actType == ActivityTypeDef.tiandihonglu then
for n,m in ipairs(upItemList) do
local itemConfig=ConfigManager.TryGetConfigData(ConfigName.ItemConfig, m.Reward[1])
table.insert(_upRateList,{id = m.Reward[1],tag = "法宝碎片UP!", name=itemConfig.Name,value = m.Weight,color = "AD4152"})
table.insert(_upRateList,{id = m.Reward[1],tag = "法宝碎片UP!", name=itemConfig.Name,value = m.WeightShow,color = "AD4152"})
end
rateList = this:RefreshSoulRate(UpItem,_upRateList,ItemType.talismanSoulChip)
end