Commit 794d3902fcbb6fd274f6da88aa17706ac0a00b4b

Authored by 熊润斐
2 parents 3ffe6116 607b1031

Merge branch 'tr/bugfix' into tr/publish/preview

src/GlobalVar.lua
... ... @@ -325,6 +325,7 @@ MailId = {
325 325 PayBackAward = 242,
326 326 CBBackAward = 243,
327 327 CBBackAward2 = 244,
  328 + ActivityPoolRet = 280,
328 329 }
329 330  
330 331 TriggerEventType = {
... ...
src/actions/ActivityAction.lua
... ... @@ -587,7 +587,7 @@ function _M.endBattleRpc(agent, data)
587 587 info = msg.info,
588 588 format = role.__actBattleCache.format
589 589 }) then
590   - SendPacket(actionCodes.Hang_endBonusBattleRpc, MsgPack.pack({errorCode = 1}))
  590 + SendPacket(actionCodes.Activity_endBattleRpc, MsgPack.pack({errorCode = 1}))
591 591 return true
592 592 end
593 593 role.__actBattleCache = nil
... ...
src/actions/RoleAction.lua
... ... @@ -1013,6 +1013,10 @@ function _M.chatRpc(agent, data)
1013 1013 result = 1
1014 1014 return
1015 1015 end
  1016 + if role:getProperty("level") < (globalCsv.chat_level or 15) then
  1017 + result = 3
  1018 + return
  1019 + end
1016 1020  
1017 1021 role._worldChatLimit = role._worldChatLimit or {start = 0, count = 0, canSayt = 0} --第一次开始说话时间 从第一次说话次数 能说话的时间
1018 1022  
... ...
src/adv/Adv.lua
... ... @@ -1120,6 +1120,11 @@ local function clickOut(self, room, block, params, isExit)
1120 1120 else
1121 1121 if self.level > (advPass[self.chapterId] or 0) then
1122 1122 self.owner:changeUpdates({{type = "advPass", field = self.chapterId, value = self.level}})
  1123 +
  1124 + if (self.level >= csvdb["adv_chapterCsv"][self.chapterId].limitlevel) then --关卡结束
  1125 + self.owner:checkTaskEnter("AdvPassFirst", {id = self.chapterId})
  1126 + end
  1127 +
1123 1128 end
1124 1129 end
1125 1130  
... ...
1   -Subproject commit b86293f02222b1fbd499e57de9ead6cbd6e0d736
  1 +Subproject commit 76b7ed2b1684a9741a5c531e616acc31c8b5aa9d
... ...
src/models/Activity.lua
... ... @@ -529,6 +529,12 @@ activityFunc[Activity.ActivityType.ActHeroPool] = {
529 529 local actData = self:getActData(actType)
530 530 local cfg = csvdb["activity_ctrlCsv"][actId]
531 531 if not cfg then return end
  532 + -- 保底次数转换成万能碎片
  533 + --local count = math.ceil(((actData[cfg.condition] or 0) / 100) * 60)
  534 + --if count > 0 then
  535 + -- local gift = {[723] = count}
  536 + -- self.owner:sendMail(MailId.ActivityPoolRet, nil, gift, {})
  537 + --end
532 538 actData[cfg.condition] = nil
533 539 self:updateActData(actType, actData, not notify)
534 540 end,
... ...
src/models/RoleBattle.lua
... ... @@ -150,7 +150,7 @@ function Role:checkBattleCheat(battleType, params)
150 150 -- self:setProperty("cheatCount", cheatCount)
151 151  
152 152 local result = {clientSelf = {}, serverSelf = {}}
153   - for k , v in pairs(clientInfo.selfAttr) do
  153 + for k , v in pairs(clientInfo.selfAttr or {}) do
154 154 result.clientSelf[tostring(k)] = v
155 155 end
156 156 for k , v in pairs(selfTeamServer) do
... ...
src/models/RolePvp.lua
... ... @@ -530,7 +530,7 @@ function Role:changeCrossServerPvpSelfInfo(cType)
530 530 return
531 531 end
532 532 change.battleV = self:getProperty("pvpTBVH")
533   - change.heros = self:getProperty("pvpTSH")
  533 + change.team = self:getProperty("pvpTSH")
534 534 change.battleInfo = self:getProperty("pvpTBH")
535 535 end
536 536  
... ...
src/models/RoleTask.lua
... ... @@ -50,6 +50,7 @@ local TaskType = {
50 50 AdvHang = 412, -- 代理拾荒次数
51 51 AdvMineKill = 413, -- 宝藏怪击杀
52 52 AdvMineLayer = 414, -- 宝藏洞激活
  53 + AdvPassFirst = 415, -- 冒险首次通关 - id
53 54  
54 55 --爬塔相关
55 56 TowerPass = 501, -- 爬塔通关 - level
... ... @@ -240,7 +241,7 @@ local StoreListener = {
240 241 [TaskType.HangPass] = {{TriggerEventType.HangPass, f("id")}},
241 242 [TaskType.RoleLevelUp] = {{TriggerEventType.LevelUp, f("level")}},
242 243 [TaskType.TowerPass] = {{TriggerEventType.TowerPass, f("level")}},
243   - [TaskType.AdvPass] = {{TriggerEventType.AdvPass, f("id")}},
  244 + [TaskType.AdvPassFirst] = {{TriggerEventType.AdvPass, f("id")}},
244 245 [TaskType.AddHero] = {{TriggerEventType.AddNewHero, f("heroType")}, {TriggerEventType.SSRCount, f("ssrCount")}},
245 246 }
246 247 }
... ...