Commit 0c90a4f47f17854fed38c2f9432f19bafff97ea4
1 parent
c3a70cde
拾荒引导结束要设定引导步骤为成就引导
Showing
2 changed files
with
5 additions
and
0 deletions
Show diff stats
src/actions/AdvAction.lua
| @@ -614,6 +614,7 @@ function _M.exitAdvRpc(agent, data) | @@ -614,6 +614,7 @@ function _M.exitAdvRpc(agent, data) | ||
| 614 | local role = agent.role | 614 | local role = agent.role |
| 615 | -- local msg = MsgPack.unpack(data) | 615 | -- local msg = MsgPack.unpack(data) |
| 616 | if not isCanContinue(role) then return end | 616 | if not isCanContinue(role) then return end |
| 617 | + -- 冒险中途退出的时候要把引导步骤设定到成就引导 | ||
| 617 | if not role:checkOverGuide(57) then | 618 | if not role:checkOverGuide(57) then |
| 618 | role:saveGuide(57,1,true) | 619 | role:saveGuide(57,1,true) |
| 619 | end | 620 | end |
src/adv/Adv.lua
| @@ -789,6 +789,10 @@ function Adv:over(success, rewardRatio, overType) | @@ -789,6 +789,10 @@ function Adv:over(success, rewardRatio, overType) | ||
| 789 | red:hset(RANK_ADV_INFO, roleId, MsgPack.pack(curInfo)) | 789 | red:hset(RANK_ADV_INFO, roleId, MsgPack.pack(curInfo)) |
| 790 | end) | 790 | end) |
| 791 | end | 791 | end |
| 792 | + -- 通关的时候要把引导步骤设定到成就引导 | ||
| 793 | + if not role:checkOverGuide(57) then | ||
| 794 | + role:saveGuide(57,1,true) | ||
| 795 | + end | ||
| 792 | end | 796 | end |
| 793 | self:clearAdvUnlockCache() | 797 | self:clearAdvUnlockCache() |
| 794 | 798 |