Commit 41e118a5fd6e1eb2ddf65b05fe41aaf813e26704
1 parent
f85addaa
增加输出
Showing
1 changed file
with
4 additions
and
4 deletions
Show diff stats
src/actions/AdvAction.lua
| @@ -454,13 +454,13 @@ function _M.chooseArtifactRpc(agent, data) | @@ -454,13 +454,13 @@ function _M.chooseArtifactRpc(agent, data) | ||
| 454 | local role = agent.role | 454 | local role = agent.role |
| 455 | local msg = MsgPack.unpack(data) | 455 | local msg = MsgPack.unpack(data) |
| 456 | 456 | ||
| 457 | - if not isCanContinue(role) then return end | 457 | + if not isCanContinue(role) then return 1 end |
| 458 | 458 | ||
| 459 | local adv = role:getAdvData() | 459 | local adv = role:getAdvData() |
| 460 | - if not msg.idx then return end | ||
| 461 | - if not adv:isWaitChooseArtifact() then return end | 460 | + if not msg.idx then return 2 end |
| 461 | + if not adv:isWaitChooseArtifact() then return 3 end | ||
| 462 | local status = adv:chooseArtifact(msg.idx) | 462 | local status = adv:chooseArtifact(msg.idx) |
| 463 | - if not status then return end | 463 | + if not status then return 4 end |
| 464 | adv:saveDB() | 464 | adv:saveDB() |
| 465 | 465 | ||
| 466 | SendPacket(actionCodes.Adv_chooseArtifactRpc, '') | 466 | SendPacket(actionCodes.Adv_chooseArtifactRpc, '') |