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