Commit 84cf48b4b3bbabaf4dee84b648097eaae63341e5
Merge branch 'develop' of 120.26.43.151:wasteland/server into develop
Showing
8 changed files
with
36 additions
and
13 deletions
Show diff stats
src/actions/AdvAction.lua
@@ -657,7 +657,7 @@ function _M.startBattleRpc(agent, data) | @@ -657,7 +657,7 @@ function _M.startBattleRpc(agent, data) | ||
657 | if adv:isWaitChooseArtifact() then return end | 657 | if adv:isWaitChooseArtifact() then return end |
658 | local enemy = adv.battle:getEnemyById(enemyId) | 658 | local enemy = adv.battle:getEnemyById(enemyId) |
659 | 659 | ||
660 | - if enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId or enemy.lock or enemy.isDead then return end | 660 | + if not enemy or enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId or enemy.lock or enemy.isDead then return end |
661 | 661 | ||
662 | local key = tostring(math.random()) | 662 | local key = tostring(math.random()) |
663 | adv.__battleCache = { | 663 | adv.__battleCache = { |
@@ -689,7 +689,7 @@ function _M.endBattleRpc(agent, data) | @@ -689,7 +689,7 @@ function _M.endBattleRpc(agent, data) | ||
689 | if not adv.__battleCache then return end | 689 | if not adv.__battleCache then return end |
690 | if adv.__battleCache.enemyId ~= enemyId then return end | 690 | if adv.__battleCache.enemyId ~= enemyId then return end |
691 | local enemy = adv.battle:getEnemyById(enemyId) | 691 | local enemy = adv.battle:getEnemyById(enemyId) |
692 | - if enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId then return end | 692 | + if not enemy or enemy.monsterId ~= monsterId or enemy.roomId ~= roomId or enemy.blockId ~= blockId then return end |
693 | adv.__battleCache = nil | 693 | adv.__battleCache = nil |
694 | 694 | ||
695 | -- 打完野猪怪 | 695 | -- 打完野猪怪 |
src/actions/HeroAction.lua
@@ -116,7 +116,7 @@ function _M.wakeRpc(agent, data) | @@ -116,7 +116,7 @@ function _M.wakeRpc(agent, data) | ||
116 | 116 | ||
117 | local curLevel = hero:getProperty("wakeL") | 117 | local curLevel = hero:getProperty("wakeL") |
118 | role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel}) | 118 | role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel}) |
119 | - if curLevel == 4 then -- 解锁cg | 119 | + if curLevel == 3 then -- 解锁cg |
120 | role:checkTaskEnter("WakeCG", {heroType = typ}) | 120 | role:checkTaskEnter("WakeCG", {heroType = typ}) |
121 | end | 121 | end |
122 | hero:mylog({desc = "wake", int1 = hero:getProperty("wakeL")}) | 122 | hero:mylog({desc = "wake", int1 = hero:getProperty("wakeL")}) |
src/actions/RoleAction.lua
@@ -942,6 +942,7 @@ function _M.chatRpc(agent, data) | @@ -942,6 +942,7 @@ function _M.chatRpc(agent, data) | ||
942 | end | 942 | end |
943 | mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response)) | 943 | mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response)) |
944 | pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) | 944 | pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response) |
945 | + role:mylog("role_action", {desc = "chatWorld", text1 = content}) | ||
945 | end, | 946 | end, |
946 | -- 私聊 | 947 | -- 私聊 |
947 | [2] = function () | 948 | [2] = function () |
src/adv/AdvPlayer.lua
@@ -670,7 +670,9 @@ function Player:effectBattleBuff() | @@ -670,7 +670,9 @@ function Player:effectBattleBuff() | ||
670 | for _, buff in ipairs(self.buffs) do | 670 | for _, buff in ipairs(self.buffs) do |
671 | if not buff:isHide() and (buff:getType() == Buff.BATTLE_BUFF or buff:getType() == Buff.BATTLE_PASSIVE) then | 671 | if not buff:isHide() and (buff:getType() == Buff.BATTLE_BUFF or buff:getType() == Buff.BATTLE_PASSIVE) then |
672 | buff:effect() | 672 | buff:effect() |
673 | - buff:uncover() | 673 | + if not buff.buffData.classify:sismember(7, " ") then -- 神器buff 不会清除 |
674 | + buff:uncover() | ||
675 | + end | ||
674 | end | 676 | end |
675 | end | 677 | end |
676 | end | 678 | end |
src/models/RoleChangeStruct.lua
@@ -31,16 +31,33 @@ local awardGift = createVersionFunc(VersionType.Override ,function(role, params) | @@ -31,16 +31,33 @@ local awardGift = createVersionFunc(VersionType.Override ,function(role, params) | ||
31 | print("awardGift" .. " >>> " .. params) | 31 | print("awardGift" .. " >>> " .. params) |
32 | end) | 32 | end) |
33 | 33 | ||
34 | +local bugFixSuduku = createVersionFunc(VersionType.DoOnly, function(role, params) | ||
35 | + local sudoku = role:getProperty("sudoku") | ||
36 | + local phase = sudoku[-1] or 1 | ||
37 | + local id = 9 | ||
38 | + if phase == 1 then | ||
39 | + local curData = (csvdb["guide_sudokuCsv"][phase] or {})[id] | ||
40 | + if role:checkHangPass(curData.con2) then | ||
41 | + sudoku.task = sudoku.task or {} | ||
42 | + sudoku.task[phase] = sudoku.task[phase] or {} | ||
43 | + if (sudoku.task[phase][id] or 0 == 0) then | ||
44 | + sudoku.task[phase][id] = 1 | ||
45 | + role:setProperty("sudoku", sudoku) | ||
46 | + end | ||
47 | + end | ||
48 | + end | ||
49 | +end) | ||
50 | + | ||
34 | ---------------------版本方法 end ---------------------- | 51 | ---------------------版本方法 end ---------------------- |
35 | 52 | ||
36 | -- version 罗列start | 53 | -- version 罗列start |
37 | local versionList = {} -- version 列表 | 54 | local versionList = {} -- version 列表 |
38 | -versionList[1] = {clearActivity, {1, 2}} | ||
39 | -versionList[2] = {clearActivity, {5, 7}} | ||
40 | -versionList[3] = {changeStructF, "test1"} | ||
41 | -versionList[4] = {changeStructF, "test2"} | ||
42 | -versionList[5] = {awardGift, "test3"} | ||
43 | -versionList[6] = {awardGift, "test4"} | 55 | +versionList[1] = {bugFixSuduku, {}} |
56 | +-- versionList[2] = {clearActivity, {5, 7}} | ||
57 | +-- versionList[3] = {changeStructF, "test1"} | ||
58 | +-- versionList[4] = {changeStructF, "test2"} | ||
59 | +-- versionList[5] = {awardGift, "test3"} | ||
60 | +-- versionList[6] = {awardGift, "test4"} | ||
44 | 61 | ||
45 | --version 罗列end | 62 | --version 罗列end |
46 | 63 |
src/models/RoleLog.lua
@@ -12,7 +12,7 @@ local server_id = (skynet.getenv("serverType") or "localtest") .. "_" .. serverI | @@ -12,7 +12,7 @@ local server_id = (skynet.getenv("serverType") or "localtest") .. "_" .. serverI | ||
12 | 1000 其他行为 | 12 | 1000 其他行为 |
13 | --]] | 13 | --]] |
14 | local ItemReason = { | 14 | local ItemReason = { |
15 | - recharge = 100, | 15 | + recharge = 100, -- 充值获取 |
16 | advWheelSurf = 101, -- 资助 | 16 | advWheelSurf = 101, -- 资助 |
17 | advRepayWheelSurf = 102, -- 资助回馈 | 17 | advRepayWheelSurf = 102, -- 资助回馈 |
18 | saleEquip = 103, -- 卖装备 | 18 | saleEquip = 103, -- 卖装备 |
@@ -482,6 +482,7 @@ local LogType = { | @@ -482,6 +482,7 @@ local LogType = { | ||
482 | login = "common", | 482 | login = "common", |
483 | logout = "common", | 483 | logout = "common", |
484 | guide = "common", | 484 | guide = "common", |
485 | + newdevice = "common", | ||
485 | 486 | ||
486 | in_item = "common", | 487 | in_item = "common", |
487 | out_item = "common", | 488 | out_item = "common", |
src/models/RolePlugin.lua
@@ -444,7 +444,9 @@ function RolePlugin.bind(Role) | @@ -444,7 +444,9 @@ function RolePlugin.bind(Role) | ||
444 | type= heroType, | 444 | type= heroType, |
445 | wakeL = globalCsv.unit_wake_initLevel[unitData.rare], | 445 | wakeL = globalCsv.unit_wake_initLevel[unitData.rare], |
446 | } | 446 | } |
447 | - | 447 | + if heroInfo.wakeL == 3 then |
448 | + self:checkTaskEnter("WakeCG", {heroType = heroType}) | ||
449 | + end | ||
448 | local newHero = require("models.Hero").new(heroInfo) | 450 | local newHero = require("models.Hero").new(heroInfo) |
449 | newHero:create() | 451 | newHero:create() |
450 | newHero.owner = self | 452 | newHero.owner = self |
src/models/RoleTask.lua
@@ -555,7 +555,7 @@ function RoleTask.bind(Role) | @@ -555,7 +555,7 @@ function RoleTask.bind(Role) | ||
555 | for id , sudikuData in pairs(guide_sudokuData) do | 555 | for id , sudikuData in pairs(guide_sudokuData) do |
556 | local curStatus = sudoku.task[pause][id] or 0 | 556 | local curStatus = sudoku.task[pause][id] or 0 |
557 | 557 | ||
558 | - if curStatus ~= -1 and sudikuData.type == stype and (sudikuData.unlock == 0 or self:checkHangPass(sudikuData.unlock)) then | 558 | + if curStatus ~= -1 and sudikuData.type == stype then |
559 | if IsFindMax[sudikuData.type] then -- 最大值 | 559 | if IsFindMax[sudikuData.type] then -- 最大值 |
560 | if sudikuData.con2 == 0 or sudikuData.con2 == cond then | 560 | if sudikuData.con2 == 0 or sudikuData.con2 == cond then |
561 | if (count or 0) > curStatus then | 561 | if (count or 0) > curStatus then |
-
mentioned in commit 52f8c5f05d0a531232a7dd7887becd2a77986aa1
-
mentioned in commit ba6d85edc65900830c7e168102d70671881b5808