From 8f5218e6c325b74cb1b16f258cd83a25864a9bc2 Mon Sep 17 00:00:00 2001 From: zhouhaihai Date: Wed, 12 Feb 2020 14:22:41 +0800 Subject: [PATCH] 犯回错误区分 --- src/actions/AdvAction.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/actions/AdvAction.lua b/src/actions/AdvAction.lua index 2a69e5b..ecacd3e 100644 --- a/src/actions/AdvAction.lua +++ b/src/actions/AdvAction.lua @@ -525,23 +525,23 @@ function _M.wheelSurfRpc(agent, data) [2] = 10 } local count = countPool[ctype] - if not count then return end + if not count then return 1 end if ptype == 2 and not role:isFuncOpen(FuncOpenType.AdvEndless) then - return + return 2 end local drawTypeData = csvdb["adv_wheelsurfCsv"][ptype] - if not drawTypeData then return end + if not drawTypeData then return 3 end local drawData = drawTypeData[role:getAdvWheelSurfLv(ptype)] - if not drawData then return end + if not drawData then return 4 end local costs = drawData.cost:toNumMap() for id, count_ in pairs(costs) do costs[id] = count_ * count end - if not role:checkItemEnough(costs) then return end + if not role:checkItemEnough(costs) then return 5 end role:costItems(costs) role:addAdvLvExp(costs[ItemId.OldCoin] or 0) local advDrawB = role:getProperty("advDrawB") -- libgit2 0.21.2