From bc46019646769d843c09a71377969b68796230d2 Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Thu, 29 Jul 2021 17:12:21 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E4=BB=A4=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E3=80=91=E6=97=A0=E5=B0=BD=E5=89=AF=E6=9C=AC=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=86=97=E4=BD=99=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua b/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua index 0796af076b..3c36457ec7 100644 --- a/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua +++ b/Assets/ManagedResources/~Lua/Modules/Map/EndLessMapManager.lua @@ -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()