Commit 84cf48b4b3bbabaf4dee84b648097eaae63341e5

Authored by liuzujun
2 parents 8cd3770f b7e842ac

Merge branch 'develop' of 120.26.43.151:wasteland/server into develop

src/actions/AdvAction.lua
... ... @@ -657,7 +657,7 @@ function _M.startBattleRpc(agent, data)
657 657 if adv:isWaitChooseArtifact() then return end
658 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 662 local key = tostring(math.random())
663 663 adv.__battleCache = {
... ... @@ -689,7 +689,7 @@ function _M.endBattleRpc(agent, data)
689 689 if not adv.__battleCache then return end
690 690 if adv.__battleCache.enemyId ~= enemyId then return end
691 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 693 adv.__battleCache = nil
694 694  
695 695 -- 打完野猪怪
... ...
src/actions/HeroAction.lua
... ... @@ -116,7 +116,7 @@ function _M.wakeRpc(agent, data)
116 116  
117 117 local curLevel = hero:getProperty("wakeL")
118 118 role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel})
119   - if curLevel == 4 then -- 解锁cg
  119 + if curLevel == 3 then -- 解锁cg
120 120 role:checkTaskEnter("WakeCG", {heroType = typ})
121 121 end
122 122 hero:mylog({desc = "wake", int1 = hero:getProperty("wakeL")})
... ...
src/actions/RoleAction.lua
... ... @@ -942,6 +942,7 @@ function _M.chatRpc(agent, data)
942 942 end
943 943 mcast_util.pub_world(actionCodes.Role_chat, MsgPack.pack(response))
944 944 pcall(skynet.send, '.globald', "lua", "sendWorldMsg", role._channelIdx, response)
  945 + role:mylog("role_action", {desc = "chatWorld", text1 = content})
945 946 end,
946 947 -- 私聊
947 948 [2] = function ()
... ...
src/adv/AdvPlayer.lua
... ... @@ -670,7 +670,9 @@ function Player:effectBattleBuff()
670 670 for _, buff in ipairs(self.buffs) do
671 671 if not buff:isHide() and (buff:getType() == Buff.BATTLE_BUFF or buff:getType() == Buff.BATTLE_PASSIVE) then
672 672 buff:effect()
673   - buff:uncover()
  673 + if not buff.buffData.classify:sismember(7, " ") then -- 神器buff 不会清除
  674 + buff:uncover()
  675 + end
674 676 end
675 677 end
676 678 end
... ...
src/models/RoleChangeStruct.lua
... ... @@ -31,16 +31,33 @@ local awardGift = createVersionFunc(VersionType.Override ,function(role, params)
31 31 print("awardGift" .. " >>> " .. params)
32 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 51 ---------------------版本方法 end ----------------------
35 52  
36 53 -- version 罗列start
37 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 62 --version 罗列end
46 63  
... ...
src/models/RoleLog.lua
... ... @@ -12,7 +12,7 @@ local server_id = (skynet.getenv("serverType") or "localtest") .. "_" .. serverI
12 12 1000 其他行为
13 13 --]]
14 14 local ItemReason = {
15   - recharge = 100,
  15 + recharge = 100, -- 充值获取
16 16 advWheelSurf = 101, -- 资助
17 17 advRepayWheelSurf = 102, -- 资助回馈
18 18 saleEquip = 103, -- 卖装备
... ... @@ -482,6 +482,7 @@ local LogType = {
482 482 login = "common",
483 483 logout = "common",
484 484 guide = "common",
  485 + newdevice = "common",
485 486  
486 487 in_item = "common",
487 488 out_item = "common",
... ...
src/models/RolePlugin.lua
... ... @@ -444,7 +444,9 @@ function RolePlugin.bind(Role)
444 444 type= heroType,
445 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 450 local newHero = require("models.Hero").new(heroInfo)
449 451 newHero:create()
450 452 newHero.owner = self
... ...
src/models/RoleTask.lua
... ... @@ -555,7 +555,7 @@ function RoleTask.bind(Role)
555 555 for id , sudikuData in pairs(guide_sudokuData) do
556 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 559 if IsFindMax[sudikuData.type] then -- 最大值
560 560 if sudikuData.con2 == 0 or sudikuData.con2 == cond then
561 561 if (count or 0) > curStatus then
... ...