Commit ee7b3c2a81efb8cb987fe34cf8183b9b106210e7

Authored by 熊润斐
2 parents f4a07e64 e3b29f2f

Merge branch 'tr/bugfix-qa' into tr/publish/qa-out

src/actions/ActivityAction.lua
... ... @@ -1237,10 +1237,10 @@ function _M.battleCommandRpc(agent, data)
1237 1237 local awd = ""
1238 1238 if pay then
1239 1239 actData["payR"] = record
1240   - awd = bpCfg["rewardNormal"]
  1240 + awd = bpCfg["rewardHigh"]
1241 1241 else
1242 1242 actData["freeR"] = record
1243   - awd = bpCfg["rewardHigh"]
  1243 + awd = bpCfg["rewardNormal"]
1244 1244 end
1245 1245 for k, v in pairs(awd:toNumMap()) do
1246 1246 award[k] = (award[k] or 0) + v
... ... @@ -1279,6 +1279,7 @@ function _M.buyBattleCommandLvlRpc(agent, data)
1279 1279 local cfg = bpCfg[i]
1280 1280 if cfg["type"] > curLvl and cfg["type"] <= nextLvl then
1281 1281 cost = cost + cfg["cost"]
  1282 + elseif cfg["type"] > nextLvl then
1282 1283 break
1283 1284 end
1284 1285 end
... ...
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,16 @@ 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 + local old = actData["week"] or 0
  1054 + actData["week"] = math.min(old + count, limit)
  1055 + count = actData["week"] - old
1051 1056 end
1052   - actData["week"] = (actData["week"] or 0) + count
1053 1057 local total = actData["sum"] + count
1054 1058 local curLvl = actData["lvl"] or 0
1055 1059 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}},
... ...