Commit b88939d59a5a1bebda0df713e0e2221fa8f9c90b
1 parent
b454725a
fix: 玛尼的英雄帖增加任务类型 bug修复
1. 招募英雄需要重新计算所有英雄的星级总数 2. 英雄达到3级需要增加英雄CG解锁总数
Showing
3 changed files
with
9 additions
and
2 deletions
Show diff stats
src/actions/HeroAction.lua
| @@ -147,9 +147,11 @@ function _M.wakeRpc(agent, data) | @@ -147,9 +147,11 @@ function _M.wakeRpc(agent, data) | ||
| 147 | local oldBattleV = hero:getProperty("battleV") | 147 | local oldBattleV = hero:getProperty("battleV") |
| 148 | hero:updateProperty({field = "wakeL", delta = 1}) | 148 | hero:updateProperty({field = "wakeL", delta = 1}) |
| 149 | 149 | ||
| 150 | - role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel + 1}) | 150 | + curLevel = curLevel + 1 |
| 151 | + role:checkTaskEnter("Wake", {heroType = typ, wakeL = curLevel}) | ||
| 151 | if curLevel == 3 then -- 解锁cg | 152 | if curLevel == 3 then -- 解锁cg |
| 152 | role:checkTaskEnter("WakeCG", {heroType = typ}) | 153 | role:checkTaskEnter("WakeCG", {heroType = typ}) |
| 154 | + role:checkTaskEnter("WakeCGSum", {count = 1}) | ||
| 153 | end | 155 | end |
| 154 | 156 | ||
| 155 | if curLevel >= 4 then --自动觉醒技能 | 157 | if curLevel >= 4 then --自动觉醒技能 |
| @@ -173,6 +175,7 @@ function _M.wakeRpc(agent, data) | @@ -173,6 +175,7 @@ function _M.wakeRpc(agent, data) | ||
| 173 | SendPacket(actionCodes.Hero_wakeRpc, '') | 175 | SendPacket(actionCodes.Hero_wakeRpc, '') |
| 174 | 176 | ||
| 175 | role:checkTaskEnter("HeroStarCollect", {}) | 177 | role:checkTaskEnter("HeroStarCollect", {}) |
| 178 | + role:checkTaskEnter("HeroStartSum", {}) | ||
| 176 | return true | 179 | return true |
| 177 | end | 180 | end |
| 178 | 181 |
src/models/RoleCross.lua
| @@ -167,8 +167,10 @@ RoleCross.bind = function (Role) | @@ -167,8 +167,10 @@ RoleCross.bind = function (Role) | ||
| 167 | }) | 167 | }) |
| 168 | self:checkTaskEnter("Wake", {heroType = heroId, wakeL = initData.heros.wakeL}) | 168 | self:checkTaskEnter("Wake", {heroType = heroId, wakeL = initData.heros.wakeL}) |
| 169 | self:checkTaskEnter("WakeCG", {heroType = heroId}) | 169 | self:checkTaskEnter("WakeCG", {heroType = heroId}) |
| 170 | - self:checkTaskEnter("WakeCGSum", {count = 1}) | ||
| 171 | self:checkTaskEnter("HeroTalent", {heroType = heroId, alv = aheadLevel}) | 170 | self:checkTaskEnter("HeroTalent", {heroType = heroId, alv = aheadLevel}) |
| 171 | + if initData.heros.wakeL == 3 then | ||
| 172 | + self:checkTaskEnter("WakeCGSum", {count = 1}) | ||
| 173 | + end | ||
| 172 | 174 | ||
| 173 | end | 175 | end |
| 174 | end | 176 | end |
src/models/RolePlugin.lua
| @@ -623,6 +623,8 @@ function RolePlugin.bind(Role) | @@ -623,6 +623,8 @@ function RolePlugin.bind(Role) | ||
| 623 | end | 623 | end |
| 624 | self:checkTaskEnter("AddHero", {heroType = heroType, wakeL = newHero:getProperty("wakeL"), camp = unitData.camp, job = unitData.job, ssrCount = ssrCount}, params.notNotify) | 624 | self:checkTaskEnter("AddHero", {heroType = heroType, wakeL = newHero:getProperty("wakeL"), camp = unitData.camp, job = unitData.job, ssrCount = ssrCount}, params.notNotify) |
| 625 | self:checkTaskEnter("HeroQualityCollect", {}) | 625 | self:checkTaskEnter("HeroQualityCollect", {}) |
| 626 | + self:checkTaskEnter("HeroStartSum", {}) | ||
| 627 | + | ||
| 626 | if not params.notNotify then | 628 | if not params.notNotify then |
| 627 | local heroResponse = {} | 629 | local heroResponse = {} |
| 628 | table.insert(heroResponse, newHero:data()) | 630 | table.insert(heroResponse, newHero:data()) |