【ID1016634】

【无尽副本】有没领取的任务,在线刷新无尽副本后,任务显示可领取
dev_chengFeng
jiaoyangna 2021-07-01 15:40:44 +08:00
parent 8b187bfd5f
commit b395550303
2 changed files with 8 additions and 0 deletions

View File

@ -155,6 +155,7 @@ function this.EnterMap()
local note = PlayerPrefs.GetInt("WuJin"..PlayerManager.uid)
MapManager.curMapId = EndLessMapManager.openMapId
if serData.endTime ~= note then
TaskManager.ResetEndlessMissionState()
UIManager.OpenPanel(UIName.FormationPanelV2, FORMATION_TYPE.CARBON, MapManager.curMapId)
else
MapManager.curCarbonType = CarBonTypeId.ENDLESS

View File

@ -482,4 +482,11 @@ end
function this.DelAllShowTipMissionOne()
table.remove(allShowTipMission,1)
end
function this.ResetEndlessMissionState()
for k,v in ipairs(TypeTaskData[TaskTypeDef.wujinfuben]) do
v.progress = 0
v.state = 0
end
end
return this