Commit 0c90a4f47f17854fed38c2f9432f19bafff97ea4

Authored by chenyueqi
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 614 local role = agent.role
615 615 -- local msg = MsgPack.unpack(data)
616 616 if not isCanContinue(role) then return end
  617 + -- 冒险中途退出的时候要把引导步骤设定到成就引导
617 618 if not role:checkOverGuide(57) then
618 619 role:saveGuide(57,1,true)
619 620 end
... ...
src/adv/Adv.lua
... ... @@ -789,6 +789,10 @@ function Adv:over(success, rewardRatio, overType)
789 789 red:hset(RANK_ADV_INFO, roleId, MsgPack.pack(curInfo))
790 790 end)
791 791 end
  792 + -- 通关的时候要把引导步骤设定到成就引导
  793 + if not role:checkOverGuide(57) then
  794 + role:saveGuide(57,1,true)
  795 + end
792 796 end
793 797 self:clearAdvUnlockCache()
794 798  
... ...