【云游商人】顺序修改

dev_chengFeng
ZhangBiao 2022-01-07 18:22:23 +08:00
parent 61539a1e89
commit f3e9d3b2a5
1 changed files with 5 additions and 6 deletions

View File

@ -20,6 +20,7 @@ local TypeUpdateFunc = {
curData.rewards[i].otherData.needItems = configData[j].NeedItems
curData.rewards[i].otherData.count = configData[j].Count
curData.rewards[i].otherData.composeType = configData[j].ComposeType
curData.rewards[i].otherData.Sort = configData[j].Sort
curData.rewards[i].otherData.IsShowItem = configData[j].IsShowItem == 1 and true or false
curData.rewards[i].otherData.selectId = 0
end
@ -32,11 +33,9 @@ local TypeUpdateFunc = {
if a.progress > 0 and b.progress == 0 then
return true
end
return a.missionId < b.missionId
-- if a.progress == b.progress then
-- else
-- return a.progress > b.progress
-- end
if (a.progress == 0 and b.progress == 0) or (a.progress > 0 and b.progress > 0) then
return a.otherData.Sort < b.otherData.Sort
end
end)
end,
[ActivityTypeDef.ContinuityRecharge] = function ()