Commit 794d3902fcbb6fd274f6da88aa17706ac0a00b4b
Merge branch 'tr/bugfix' into tr/publish/preview
Showing
9 changed files
with
22 additions
and
5 deletions
Show diff stats
src/GlobalVar.lua
| @@ -325,6 +325,7 @@ MailId = { | @@ -325,6 +325,7 @@ MailId = { | ||
| 325 | PayBackAward = 242, | 325 | PayBackAward = 242, |
| 326 | CBBackAward = 243, | 326 | CBBackAward = 243, |
| 327 | CBBackAward2 = 244, | 327 | CBBackAward2 = 244, |
| 328 | + ActivityPoolRet = 280, | ||
| 328 | } | 329 | } |
| 329 | 330 | ||
| 330 | TriggerEventType = { | 331 | TriggerEventType = { |
src/actions/ActivityAction.lua
| @@ -587,7 +587,7 @@ function _M.endBattleRpc(agent, data) | @@ -587,7 +587,7 @@ function _M.endBattleRpc(agent, data) | ||
| 587 | info = msg.info, | 587 | info = msg.info, |
| 588 | format = role.__actBattleCache.format | 588 | format = role.__actBattleCache.format |
| 589 | }) then | 589 | }) then |
| 590 | - SendPacket(actionCodes.Hang_endBonusBattleRpc, MsgPack.pack({errorCode = 1})) | 590 | + SendPacket(actionCodes.Activity_endBattleRpc, MsgPack.pack({errorCode = 1})) |
| 591 | return true | 591 | return true |
| 592 | end | 592 | end |
| 593 | role.__actBattleCache = nil | 593 | role.__actBattleCache = nil |
src/actions/RoleAction.lua
| @@ -1013,6 +1013,10 @@ function _M.chatRpc(agent, data) | @@ -1013,6 +1013,10 @@ function _M.chatRpc(agent, data) | ||
| 1013 | result = 1 | 1013 | result = 1 |
| 1014 | return | 1014 | return |
| 1015 | end | 1015 | end |
| 1016 | + if role:getProperty("level") < (globalCsv.chat_level or 15) then | ||
| 1017 | + result = 3 | ||
| 1018 | + return | ||
| 1019 | + end | ||
| 1016 | 1020 | ||
| 1017 | role._worldChatLimit = role._worldChatLimit or {start = 0, count = 0, canSayt = 0} --第一次开始说话时间 从第一次说话次数 能说话的时间 | 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,6 +1120,11 @@ local function clickOut(self, room, block, params, isExit) | ||
| 1120 | else | 1120 | else |
| 1121 | if self.level > (advPass[self.chapterId] or 0) then | 1121 | if self.level > (advPass[self.chapterId] or 0) then |
| 1122 | self.owner:changeUpdates({{type = "advPass", field = self.chapterId, value = self.level}}) | 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 | end | 1128 | end |
| 1124 | end | 1129 | end |
| 1125 | 1130 |
src/models/Activity.lua
| @@ -529,6 +529,12 @@ activityFunc[Activity.ActivityType.ActHeroPool] = { | @@ -529,6 +529,12 @@ activityFunc[Activity.ActivityType.ActHeroPool] = { | ||
| 529 | local actData = self:getActData(actType) | 529 | local actData = self:getActData(actType) |
| 530 | local cfg = csvdb["activity_ctrlCsv"][actId] | 530 | local cfg = csvdb["activity_ctrlCsv"][actId] |
| 531 | if not cfg then return end | 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 | actData[cfg.condition] = nil | 538 | actData[cfg.condition] = nil |
| 533 | self:updateActData(actType, actData, not notify) | 539 | self:updateActData(actType, actData, not notify) |
| 534 | end, | 540 | end, |
src/models/RoleBattle.lua
| @@ -150,7 +150,7 @@ function Role:checkBattleCheat(battleType, params) | @@ -150,7 +150,7 @@ function Role:checkBattleCheat(battleType, params) | ||
| 150 | -- self:setProperty("cheatCount", cheatCount) | 150 | -- self:setProperty("cheatCount", cheatCount) |
| 151 | 151 | ||
| 152 | local result = {clientSelf = {}, serverSelf = {}} | 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 | result.clientSelf[tostring(k)] = v | 154 | result.clientSelf[tostring(k)] = v |
| 155 | end | 155 | end |
| 156 | for k , v in pairs(selfTeamServer) do | 156 | for k , v in pairs(selfTeamServer) do |
src/models/RolePvp.lua
| @@ -530,7 +530,7 @@ function Role:changeCrossServerPvpSelfInfo(cType) | @@ -530,7 +530,7 @@ function Role:changeCrossServerPvpSelfInfo(cType) | ||
| 530 | return | 530 | return |
| 531 | end | 531 | end |
| 532 | change.battleV = self:getProperty("pvpTBVH") | 532 | change.battleV = self:getProperty("pvpTBVH") |
| 533 | - change.heros = self:getProperty("pvpTSH") | 533 | + change.team = self:getProperty("pvpTSH") |
| 534 | change.battleInfo = self:getProperty("pvpTBH") | 534 | change.battleInfo = self:getProperty("pvpTBH") |
| 535 | end | 535 | end |
| 536 | 536 |
src/models/RoleTask.lua
| @@ -50,6 +50,7 @@ local TaskType = { | @@ -50,6 +50,7 @@ local TaskType = { | ||
| 50 | AdvHang = 412, -- 代理拾荒次数 | 50 | AdvHang = 412, -- 代理拾荒次数 |
| 51 | AdvMineKill = 413, -- 宝藏怪击杀 | 51 | AdvMineKill = 413, -- 宝藏怪击杀 |
| 52 | AdvMineLayer = 414, -- 宝藏洞激活 | 52 | AdvMineLayer = 414, -- 宝藏洞激活 |
| 53 | + AdvPassFirst = 415, -- 冒险首次通关 - id | ||
| 53 | 54 | ||
| 54 | --爬塔相关 | 55 | --爬塔相关 |
| 55 | TowerPass = 501, -- 爬塔通关 - level | 56 | TowerPass = 501, -- 爬塔通关 - level |
| @@ -240,7 +241,7 @@ local StoreListener = { | @@ -240,7 +241,7 @@ local StoreListener = { | ||
| 240 | [TaskType.HangPass] = {{TriggerEventType.HangPass, f("id")}}, | 241 | [TaskType.HangPass] = {{TriggerEventType.HangPass, f("id")}}, |
| 241 | [TaskType.RoleLevelUp] = {{TriggerEventType.LevelUp, f("level")}}, | 242 | [TaskType.RoleLevelUp] = {{TriggerEventType.LevelUp, f("level")}}, |
| 242 | [TaskType.TowerPass] = {{TriggerEventType.TowerPass, f("level")}}, | 243 | [TaskType.TowerPass] = {{TriggerEventType.TowerPass, f("level")}}, |
| 243 | - [TaskType.AdvPass] = {{TriggerEventType.AdvPass, f("id")}}, | 244 | + [TaskType.AdvPassFirst] = {{TriggerEventType.AdvPass, f("id")}}, |
| 244 | [TaskType.AddHero] = {{TriggerEventType.AddNewHero, f("heroType")}, {TriggerEventType.SSRCount, f("ssrCount")}}, | 245 | [TaskType.AddHero] = {{TriggerEventType.AddNewHero, f("heroType")}, {TriggerEventType.SSRCount, f("ssrCount")}}, |
| 245 | } | 246 | } |
| 246 | } | 247 | } |