From 41e118a5fd6e1eb2ddf65b05fe41aaf813e26704 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Sat, 2 May 2020 17:09:21 +0800 Subject: [PATCH] 增加输出 --- src/actions/AdvAction.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/actions/AdvAction.lua b/src/actions/AdvAction.lua index 675c4b1..2c24597 100644 --- a/src/actions/AdvAction.lua +++ b/src/actions/AdvAction.lua @@ -454,13 +454,13 @@ function _M.chooseArtifactRpc(agent, data) local role = agent.role local msg = MsgPack.unpack(data) - if not isCanContinue(role) then return end + if not isCanContinue(role) then return 1 end local adv = role:getAdvData() - if not msg.idx then return end - if not adv:isWaitChooseArtifact() then return end + if not msg.idx then return 2 end + if not adv:isWaitChooseArtifact() then return 3 end local status = adv:chooseArtifact(msg.idx) - if not status then return end + if not status then return 4 end adv:saveDB() SendPacket(actionCodes.Adv_chooseArtifactRpc, '') -- libgit2 0.21.2