【战令优化】无尽副本任务数量冗余修改

dev_chengFeng
ZhangBiao 2021-07-29 17:12:21 +08:00
parent c6598ecff4
commit bc46019646
1 changed files with 4 additions and 2 deletions

View File

@ -702,6 +702,7 @@ function this.InitMissionData()
end end
function this.SetRewardData() function this.SetRewardData()
local missions = {}
local allMissionData = TaskManager.GetTypeTaskList(TaskTypeDef.wujinfuben) local allMissionData = TaskManager.GetTypeTaskList(TaskTypeDef.wujinfuben)
for k,v in ipairs(this.mission) do for k,v in ipairs(this.mission) do
for j = 1,#allMissionData do for j = 1,#allMissionData do
@ -720,6 +721,7 @@ function this.SetRewardData()
v.state = 2 v.state = 2
end end
v.info = v.Desc ..("(")..v.progress.."/"..v.value..(")") v.info = v.Desc ..("(")..v.progress.."/"..v.value..(")")
table.insert(missions,v)
break break
end end
end end
@ -730,7 +732,7 @@ function this.SetRewardData()
[1] = 0, [1] = 0,
[2] = 1, [2] = 1,
} }
table.sort(this.mission, function(a,b) table.sort(missions, function(a,b)
if typeIndex[a.state] == typeIndex[b.state] then if typeIndex[a.state] == typeIndex[b.state] then
return a.Id < b.Id return a.Id < b.Id
else else
@ -740,7 +742,7 @@ function this.SetRewardData()
CheckRedPointStatus(RedPointType.wujinMission) CheckRedPointStatus(RedPointType.wujinMission)
CheckRedPointStatus(RedPointType.EndlessPanel) CheckRedPointStatus(RedPointType.EndlessPanel)
return this.mission return missions
end end
function this.GetRewardData() function this.GetRewardData()