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

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