Commit 75876cb3bf40c5cb7025ee3f85c7e0f6b77b8098

Authored by liuzujun
1 parent 3fdfef30

代理拾荒出勤人数计数错误, 代理拾荒没有统计进拾荒体力消耗

src/actions/AdvAction.lua
... ... @@ -291,6 +291,8 @@ function _M.startHangRpc(agent, data)
291 291  
292 292 if not role:checkAdvCount(adv_idle_energy) then return 7 end -- 是否有体力
293 293  
  294 + role:checkTaskEnter("AdvCostPower", {count = adv_idle_energy})
  295 +
294 296 if not checkFormat(role, format, role:getAdvData():isRunning()) then return 8 end --编队是否正确
295 297  
296 298 local player = {}
... ...
1   -Subproject commit 887956fe254c1ca6e855ec71179e203f9eeb8986
  1 +Subproject commit 5c618b16315e74aaa111b3e84dbc4da3f7b3d699
... ...
src/models/Activity.lua
... ... @@ -1044,12 +1044,14 @@ activityFunc[Activity.ActivityType.BattleCommand] = {
1044 1044 if not actCfg then return end
1045 1045 if actCfg.condition1 == "" then return end
1046 1046 local arr = actCfg.condition2:toArray(true, "=")
1047   - local itemId, limit = arr[1], arr[2]
1048   - if itemId == id and count > 0 then
1049   - if (actData["week"] or 0) >= limit then
1050   - return
  1047 + local itemIdWeek, itemIdNormal, limit = arr[1], arr[2], arr[3]
  1048 + if (itemIdWeek == id or itemIdNormal == id) and count > 0 then
  1049 + if itemIdWeek == id then
  1050 + if (actData["week"] or 0) >= limit then
  1051 + return
  1052 + end
  1053 + actData["week"] = (actData["week"] or 0) + count
1051 1054 end
1052   - actData["week"] = (actData["week"] or 0) + count
1053 1055 local total = actData["sum"] + count
1054 1056 local curLvl = actData["lvl"] or 0
1055 1057 if actCfg.condition == 1 then -- 代表sum需要转换为等级
... ...
src/models/RoleTask.lua
... ... @@ -285,7 +285,7 @@ local CalendaTaskListener = {
285 285 [TaskType.OpenBox]= {{20, 3, f("count"), f("quality")}},
286 286 [TaskType.RadioTaskStart] = {{21, 1}, {22, 3, f("heroCnt")}},
287 287 [TaskType.BonusQuick] = {{23, 1, f("count")}},
288   - [TaskType.AdvHangHeroCnt] = {{24, 3, f("HeroCnt")}},
  288 + [TaskType.AdvHangHeroCnt] = {{24, 3, f("count")}},
289 289 [TaskType.AdvKillBoss] = {{25, 1}},
290 290 [TaskType.AdvMineKill] = {{26, 1}},
291 291 [TaskType.PvpBattle] = {{27, 1}},
... ...