From aeb5da9a4a1bbf0308354555cebd7bbb162a93ee Mon Sep 17 00:00:00 2001 From: chenyueqi <1056825054@qq.com> Date: Wed, 4 Mar 2020 16:46:25 +0800 Subject: [PATCH] 强制引导的步数记录 --- src/actions/RoleAction.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/actions/RoleAction.lua b/src/actions/RoleAction.lua index f14f034..ef976b7 100644 --- a/src/actions/RoleAction.lua +++ b/src/actions/RoleAction.lua @@ -929,8 +929,12 @@ function _M.guideRpc(agent, data) local funcGuide = role:getProperty("funcGuide") local newerGuide = role:getProperty("newerGuide") - if cmd == 1 then + if cmdType == 1 then -- 新手引导 + local master = msg.master or -1 + local slave = msg.slave or -1 + if master < 0 or slave < 0 then return end + newerGuide = string.format("%d=%d",master,slave) role:updateProperty({field = "newerGuide", value = newerGuide}) elseif cmdType == 2 then -- 系统引导 -- libgit2 0.21.2