Commit aeb5da9a4a1bbf0308354555cebd7bbb162a93ee
1 parent
abe0d7e9
强制引导的步数记录
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/actions/RoleAction.lua
@@ -929,8 +929,12 @@ function _M.guideRpc(agent, data) | @@ -929,8 +929,12 @@ function _M.guideRpc(agent, data) | ||
929 | 929 | ||
930 | local funcGuide = role:getProperty("funcGuide") | 930 | local funcGuide = role:getProperty("funcGuide") |
931 | local newerGuide = role:getProperty("newerGuide") | 931 | local newerGuide = role:getProperty("newerGuide") |
932 | - if cmd == 1 then | 932 | + if cmdType == 1 then |
933 | -- 新手引导 | 933 | -- 新手引导 |
934 | + local master = msg.master or -1 | ||
935 | + local slave = msg.slave or -1 | ||
936 | + if master < 0 or slave < 0 then return end | ||
937 | + newerGuide = string.format("%d=%d",master,slave) | ||
934 | role:updateProperty({field = "newerGuide", value = newerGuide}) | 938 | role:updateProperty({field = "newerGuide", value = newerGuide}) |
935 | elseif cmdType == 2 then | 939 | elseif cmdType == 2 then |
936 | -- 系统引导 | 940 | -- 系统引导 |