bug fix
This commit is contained in:
parent
d05ed879f9
commit
1743386c44
@ -225,7 +225,7 @@ end
|
|||||||
-- 获取当前应该显示的阶段
|
-- 获取当前应该显示的阶段
|
||||||
function FourteenDayData:getTaskShowStage()
|
function FourteenDayData:getTaskShowStage()
|
||||||
for id, data in ipairs(self:getTaskCfg()) do
|
for id, data in ipairs(self:getTaskCfg()) do
|
||||||
if self:canGetTaskReward(id) then
|
if self:getActiveDays() >= data.stage and self:canGetTaskReward(id) then
|
||||||
return data.stage
|
return data.stage
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
@ -382,6 +382,10 @@ end
|
|||||||
|
|
||||||
-- 获取任务进度
|
-- 获取任务进度
|
||||||
function FourteenDayData:getTaskProgress(id)
|
function FourteenDayData:getTaskProgress(id)
|
||||||
|
if self:getTaskType(id) == GConst.TaskConst.TASK_TYPE.X_PLAYER_LV_REACH then
|
||||||
|
-- 玩家等级实时处理
|
||||||
|
return DataManager.PlayerData:getLv()
|
||||||
|
end
|
||||||
return self.tasksStatus[id] and self.tasksStatus[id].progress or 0
|
return self.tasksStatus[id] and self.tasksStatus[id].progress or 0
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user