Commit 48a890d6d72f656913224b8eaa5e10965b54058e

Authored by 熊润斐
2 parents cd8907bb bdd3a194

Merge branch 'bugfix' into qa

* bugfix:
  扣层数
  被动 取消
  引导用到的剧情的奖励可以直接领
  调整顺序
  签到成就
  充值返利邮件内容优化
src/actions/ActivityAction.lua
... ... @@ -138,6 +138,7 @@ function _M.signRpc(agent, data)
138 138  
139 139 local reward, change = role:award(monthData[curDay].item, {log = {desc = "sign", int1 = yearMonth, int2 = curDay}})
140 140 role:changeUpdates({{type = "sign", field = curDay, value = yearMonth}})
  141 + role:checkTaskEnter("SignIn")
141 142  
142 143 SendPacket(actionCodes.Activity_signRpc, MsgPack.pack(role:packReward(reward, change)))
143 144 return true
... ...
src/actions/RoleAction.lua
... ... @@ -679,7 +679,7 @@ function _M.storyBookRewardRpc(agent, data)
679 679 if status == -1 then return end
680 680  
681 681 if not status or status ~= 1 then
682   - if storyBookData.unlockType == 1 and role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) then -- 挂机剧情正在挂机也可以领奖
  682 + if storyBookData.unlockType == 1 and (role:getProperty("hangInfo").carbonId == tonumber(storyBookData.unlockData) or storyId == 1 or storyId == 2) then -- 挂机剧情正在挂机也可以领奖
683 683 else
684 684 return
685 685 end
... ...
src/adv/AdvPassive.lua
... ... @@ -304,7 +304,8 @@ function Passive:canEffect(effType, effValue)
304 304 end
305 305 --禁用被动技
306 306 local count = self.owner:getDisablePassiveCount()
307   - if count and (count == 0 or self.owner:getPassiveIdx(self) <= count) then
  307 + local idx = self.owner:getPassiveIdx(self)
  308 + if count and idx and (count == 0 or idx <= count) then
308 309 return
309 310 end
310 311 return true
... ...
src/adv/AdvPlayer.lua
... ... @@ -115,10 +115,13 @@ end
115 115 function BaseObject:getPassiveIdx(passive)
116 116 for idx, passive_ in ipairs(self.passives) do
117 117 if passive_ == passive then
118   - return idx
  118 + if passive.passiveData.dispel ~= 1 then
  119 + return idx
  120 + end
  121 + return
119 122 end
120 123 end
121   - return 999
  124 + return
122 125 end
123 126  
124 127 function BaseObject:getDisablePassiveCount()
... ... @@ -667,6 +670,7 @@ function Player:effectBattleBuff()
667 670 for _, buff in ipairs(self.buffs) do
668 671 if not buff:isHide() and (buff:getType() == Buff.BATTLE_BUFF or buff:getType() == Buff.BATTLE_PASSIVE) then
669 672 buff:effect()
  673 + buff:uncover()
670 674 end
671 675 end
672 676 end
... ...
1   -Subproject commit d54c7ca07fd397022166b38b58b80a78f339f592
  1 +Subproject commit 9bb26cfdb11f81dbfe6abbc468b44ca9f814deb2
... ...
src/models/Activity.lua
... ... @@ -355,7 +355,7 @@ activityFunc[Activity.ActivityType.PayBack] = {
355 355 local newVal = oldVal + twd
356 356 local gift, checkPoint = self.owner:getPaybackReward(oldVal, newVal)
357 357 if gift ~= "" then
358   - local strCp = table.concat(checkPoint ,"/")
  358 + local strCp = table.concat(checkPoint ,"")
359 359 self.owner:sendMail(MailId.PayBackAward, nil, gift, {newVal, strCp})
360 360 end
361 361 self:updateActData(actType, newVal, not notify)
... ...
src/models/RoleLog.lua
... ... @@ -367,7 +367,6 @@ local MethodType = {
367 367 --]]
368 368 friend_opt = { --好友操作
369 369 friend_opt_type = true, -- 好友操作类型,见枚举表中 好友操作类型枚举表
370   - friend_accountid = true, -- 好友账户id
371 370 friend_roleid = true, -- 好友账户下的角色id
372 371 friend_cnt = true, -- 操作后好友数量
373 372 },
... ...
src/models/RoleTask.lua
... ... @@ -82,8 +82,13 @@ local TaskType = {
82 82 GetFriendP = 803, -- 获得友情点 - count
83 83  
84 84 -- 角色相关
85   - RoleLevelUp = 901, -- 角色升级 - curlevel
86   - RuneQualityCollect = 902, -- 铭文品质收集进度
  85 + RoleLevelUp = 851, -- 角色升级 - curlevel
  86 + RuneQualityCollect = 852, -- 铭文品质收集进度
  87 +
  88 + -- 其他相关
  89 + SignIn = 901, -- 签到
  90 + Pay = 902, -- 充值
  91 + ShopAll = 903, -- 在任意商店购买
87 92  
88 93 --功能未实现 todo
89 94 AdvShop = 1002, -- 冒险商城
... ... @@ -93,9 +98,6 @@ local TaskType = {
93 98 BindPhone = 1008, -- 绑定手机
94 99 WeChat = 1009, -- 关注微信
95 100 WeBlog = 1010, -- 关注微博
96   - SignIn = 1011, -- 签到
97   - ShopAll = 1013, -- 在任意商店购买
98   - Pay = 1014, -- 充值
99 101 }
100 102  
101 103 local function f(field, func)
... ...