Commit 48a890d6d72f656913224b8eaa5e10965b54058e
Merge branch 'bugfix' into qa
* bugfix: 扣层数 被动 取消 引导用到的剧情的奖励可以直接领 调整顺序 签到成就 充值返利邮件内容优化
Showing
8 changed files
with
19 additions
and
12 deletions
Show diff stats
src/actions/ActivityAction.lua
@@ -138,6 +138,7 @@ function _M.signRpc(agent, data) | @@ -138,6 +138,7 @@ function _M.signRpc(agent, data) | ||
138 | 138 | ||
139 | local reward, change = role:award(monthData[curDay].item, {log = {desc = "sign", int1 = yearMonth, int2 = curDay}}) | 139 | local reward, change = role:award(monthData[curDay].item, {log = {desc = "sign", int1 = yearMonth, int2 = curDay}}) |
140 | role:changeUpdates({{type = "sign", field = curDay, value = yearMonth}}) | 140 | role:changeUpdates({{type = "sign", field = curDay, value = yearMonth}}) |
141 | + role:checkTaskEnter("SignIn") | ||
141 | 142 | ||
142 | SendPacket(actionCodes.Activity_signRpc, MsgPack.pack(role:packReward(reward, change))) | 143 | SendPacket(actionCodes.Activity_signRpc, MsgPack.pack(role:packReward(reward, change))) |
143 | return true | 144 | return true |
src/actions/RoleAction.lua
@@ -679,7 +679,7 @@ function _M.storyBookRewardRpc(agent, data) | @@ -679,7 +679,7 @@ function _M.storyBookRewardRpc(agent, data) | ||
679 | if status == -1 then return end | 679 | if status == -1 then return end |
680 | 680 | ||
681 | if not status or status ~= 1 then | 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 | else | 683 | else |
684 | return | 684 | return |
685 | end | 685 | end |
src/adv/AdvPassive.lua
@@ -304,7 +304,8 @@ function Passive:canEffect(effType, effValue) | @@ -304,7 +304,8 @@ function Passive:canEffect(effType, effValue) | ||
304 | end | 304 | end |
305 | --禁用被动技 | 305 | --禁用被动技 |
306 | local count = self.owner:getDisablePassiveCount() | 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 | return | 309 | return |
309 | end | 310 | end |
310 | return true | 311 | return true |
src/adv/AdvPlayer.lua
@@ -115,10 +115,13 @@ end | @@ -115,10 +115,13 @@ end | ||
115 | function BaseObject:getPassiveIdx(passive) | 115 | function BaseObject:getPassiveIdx(passive) |
116 | for idx, passive_ in ipairs(self.passives) do | 116 | for idx, passive_ in ipairs(self.passives) do |
117 | if passive_ == passive then | 117 | if passive_ == passive then |
118 | - return idx | 118 | + if passive.passiveData.dispel ~= 1 then |
119 | + return idx | ||
120 | + end | ||
121 | + return | ||
119 | end | 122 | end |
120 | end | 123 | end |
121 | - return 999 | 124 | + return |
122 | end | 125 | end |
123 | 126 | ||
124 | function BaseObject:getDisablePassiveCount() | 127 | function BaseObject:getDisablePassiveCount() |
@@ -667,6 +670,7 @@ function Player:effectBattleBuff() | @@ -667,6 +670,7 @@ function Player:effectBattleBuff() | ||
667 | for _, buff in ipairs(self.buffs) do | 670 | for _, buff in ipairs(self.buffs) do |
668 | 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 |
669 | buff:effect() | 672 | buff:effect() |
673 | + buff:uncover() | ||
670 | end | 674 | end |
671 | end | 675 | end |
672 | end | 676 | end |
src/models/Activity.lua
@@ -355,7 +355,7 @@ activityFunc[Activity.ActivityType.PayBack] = { | @@ -355,7 +355,7 @@ activityFunc[Activity.ActivityType.PayBack] = { | ||
355 | local newVal = oldVal + twd | 355 | local newVal = oldVal + twd |
356 | local gift, checkPoint = self.owner:getPaybackReward(oldVal, newVal) | 356 | local gift, checkPoint = self.owner:getPaybackReward(oldVal, newVal) |
357 | if gift ~= "" then | 357 | if gift ~= "" then |
358 | - local strCp = table.concat(checkPoint ,"/") | 358 | + local strCp = table.concat(checkPoint ,"、") |
359 | self.owner:sendMail(MailId.PayBackAward, nil, gift, {newVal, strCp}) | 359 | self.owner:sendMail(MailId.PayBackAward, nil, gift, {newVal, strCp}) |
360 | end | 360 | end |
361 | self:updateActData(actType, newVal, not notify) | 361 | self:updateActData(actType, newVal, not notify) |
src/models/RoleLog.lua
@@ -367,7 +367,6 @@ local MethodType = { | @@ -367,7 +367,6 @@ local MethodType = { | ||
367 | --]] | 367 | --]] |
368 | friend_opt = { --好友操作 | 368 | friend_opt = { --好友操作 |
369 | friend_opt_type = true, -- 好友操作类型,见枚举表中 好友操作类型枚举表 | 369 | friend_opt_type = true, -- 好友操作类型,见枚举表中 好友操作类型枚举表 |
370 | - friend_accountid = true, -- 好友账户id | ||
371 | friend_roleid = true, -- 好友账户下的角色id | 370 | friend_roleid = true, -- 好友账户下的角色id |
372 | friend_cnt = true, -- 操作后好友数量 | 371 | friend_cnt = true, -- 操作后好友数量 |
373 | }, | 372 | }, |
src/models/RoleTask.lua
@@ -82,8 +82,13 @@ local TaskType = { | @@ -82,8 +82,13 @@ local TaskType = { | ||
82 | GetFriendP = 803, -- 获得友情点 - count | 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 | --功能未实现 todo | 93 | --功能未实现 todo |
89 | AdvShop = 1002, -- 冒险商城 | 94 | AdvShop = 1002, -- 冒险商城 |
@@ -93,9 +98,6 @@ local TaskType = { | @@ -93,9 +98,6 @@ local TaskType = { | ||
93 | BindPhone = 1008, -- 绑定手机 | 98 | BindPhone = 1008, -- 绑定手机 |
94 | WeChat = 1009, -- 关注微信 | 99 | WeChat = 1009, -- 关注微信 |
95 | WeBlog = 1010, -- 关注微博 | 100 | WeBlog = 1010, -- 关注微博 |
96 | - SignIn = 1011, -- 签到 | ||
97 | - ShopAll = 1013, -- 在任意商店购买 | ||
98 | - Pay = 1014, -- 充值 | ||
99 | } | 101 | } |
100 | 102 | ||
101 | local function f(field, func) | 103 | local function f(field, func) |