活动
This commit is contained in:
parent
6546675a6f
commit
6dd035ced6
@ -389,7 +389,7 @@ function ActSevenDayData:addTaskProgress(taskType, count)
|
||||
-- addCount = 0
|
||||
-- end
|
||||
-- end
|
||||
if table.containValue(GConst.TaskConst.TASK_TARGRT_TYPE, taskType) then
|
||||
if table.containValue(GConst.TaskConst.TASK_TYPE, taskType) then
|
||||
serverData.progress = math.max(serverData.progress, addCount)
|
||||
else
|
||||
if serverData.progress <= math.maxinteger - addCount then -- 检查一下是否相加会溢出
|
||||
|
||||
@ -493,7 +493,7 @@ function ActSprintSummonData:addTaskProgress(taskType, progress)
|
||||
end
|
||||
for _, taskId in ipairs(normalList) do
|
||||
if self:getActTaskType(taskId) == taskType then
|
||||
if table.containValue(GConst.TaskConst.TASK_TARGRT_TYPE, taskType) then
|
||||
if table.containValue(GConst.TaskConst.TASK_TYPE, taskType) then
|
||||
-- 特别处理升星
|
||||
if taskType == GConst.TaskConst.TASK_TYPE.HERO_LEGEND_STAR_UP_TO then
|
||||
if self:getActTaskNum(taskId) < progress and progress <= self:getActTaskNumber1(taskId) then
|
||||
|
||||
@ -186,7 +186,7 @@ function ActivityData:addTaskProgress(actId, taskId, count)
|
||||
if not self:isTaskFinished(actId, taskId) then
|
||||
local taskType = self:getTaskType(taskId)
|
||||
local data = self:getTaskData(actId, taskId)
|
||||
if table.containValue(GConst.TaskConst.TASK_TARGRT_TYPE, taskType) then
|
||||
if table.containValue(GConst.TaskConst.TASK_TYPE, taskType) then
|
||||
data.progress = math.max(data.progress or 0, count)
|
||||
else
|
||||
data.progress = (data.progress or 0) + count
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user