Commit e04abcb49b81923bcc0f4c6ae527be1cdf5a55b5

Authored by chenyueqi
1 parent 98699b0c

电波塔的任务只算主塔的进度

Showing 2 changed files with 5 additions and 2 deletions   Show diff stats
src/actions/TowerAction.lua
@@ -109,7 +109,9 @@ function _M.endBattleRpc(agent, data) @@ -109,7 +109,9 @@ function _M.endBattleRpc(agent, data)
109 109
110 curLevel = curLevel + 1 110 curLevel = curLevel + 1
111 reward, change = role:award(curTower.reward, {log = {desc = "towerBattle", int1 = id}}) 111 reward, change = role:award(curTower.reward, {log = {desc = "towerBattle", int1 = id}})
112 - role:checkTaskEnter("TowerPass", {count = 1, type = towerType + 1}) 112 + if towerType == 0 then
  113 + role:checkTaskEnter("TowerPass", {count = towerInfo.l})
  114 + end
113 end 115 end
114 116
115 if towerType == 0 then 117 if towerType == 0 then
src/models/RoleTask.lua
@@ -191,7 +191,7 @@ local AchievListener = { @@ -191,7 +191,7 @@ local AchievListener = {
191 [TaskType.OverOderTask] = {{14}}, 191 [TaskType.OverOderTask] = {{14}},
192 [TaskType.FoodSellGold] = {{15, f("count")}}, 192 [TaskType.FoodSellGold] = {{15, f("count")}},
193 [TaskType.DinerPopular] = {{16, f("count")}}, 193 [TaskType.DinerPopular] = {{16, f("count")}},
194 - [TaskType.TowerPass] = {{17, f("count"), f("type")}}, 194 + [TaskType.TowerPass] = {{17, f("level")}},
195 [TaskType.OpenBox] = {{18, f("count")}}, 195 [TaskType.OpenBox] = {{18, f("count")}},
196 [TaskType.DinerLevelUp] = {{19, f("level"), f("type")}}, 196 [TaskType.DinerLevelUp] = {{19, f("level"), f("type")}},
197 [TaskType.DinerTalentUp] = {{20, 1, f("type")}}, 197 [TaskType.DinerTalentUp] = {{20, 1, f("type")}},
@@ -493,6 +493,7 @@ function RoleTask.bind(Role) @@ -493,6 +493,7 @@ function RoleTask.bind(Role)
493 [6] = true, 493 [6] = true,
494 [7] = true, 494 [7] = true,
495 [16] = true, 495 [16] = true,
  496 + [17] = true,
496 [19] = true, 497 [19] = true,
497 [22] = true, 498 [22] = true,
498 [23] = true, 499 [23] = true,