Commit 8f5218e6c325b74cb1b16f258cd83a25864a9bc2
1 parent
9f956e88
犯回错误区分
Showing
1 changed file
with
5 additions
and
5 deletions
Show diff stats
src/actions/AdvAction.lua
| @@ -525,23 +525,23 @@ function _M.wheelSurfRpc(agent, data) | @@ -525,23 +525,23 @@ function _M.wheelSurfRpc(agent, data) | ||
| 525 | [2] = 10 | 525 | [2] = 10 |
| 526 | } | 526 | } |
| 527 | local count = countPool[ctype] | 527 | local count = countPool[ctype] |
| 528 | - if not count then return end | 528 | + if not count then return 1 end |
| 529 | 529 | ||
| 530 | if ptype == 2 and not role:isFuncOpen(FuncOpenType.AdvEndless) then | 530 | if ptype == 2 and not role:isFuncOpen(FuncOpenType.AdvEndless) then |
| 531 | - return | 531 | + return 2 |
| 532 | end | 532 | end |
| 533 | 533 | ||
| 534 | local drawTypeData = csvdb["adv_wheelsurfCsv"][ptype] | 534 | local drawTypeData = csvdb["adv_wheelsurfCsv"][ptype] |
| 535 | - if not drawTypeData then return end | 535 | + if not drawTypeData then return 3 end |
| 536 | local drawData = drawTypeData[role:getAdvWheelSurfLv(ptype)] | 536 | local drawData = drawTypeData[role:getAdvWheelSurfLv(ptype)] |
| 537 | - if not drawData then return end | 537 | + if not drawData then return 4 end |
| 538 | 538 | ||
| 539 | local costs = drawData.cost:toNumMap() | 539 | local costs = drawData.cost:toNumMap() |
| 540 | for id, count_ in pairs(costs) do | 540 | for id, count_ in pairs(costs) do |
| 541 | costs[id] = count_ * count | 541 | costs[id] = count_ * count |
| 542 | end | 542 | end |
| 543 | 543 | ||
| 544 | - if not role:checkItemEnough(costs) then return end | 544 | + if not role:checkItemEnough(costs) then return 5 end |
| 545 | role:costItems(costs) | 545 | role:costItems(costs) |
| 546 | role:addAdvLvExp(costs[ItemId.OldCoin] or 0) | 546 | role:addAdvLvExp(costs[ItemId.OldCoin] or 0) |
| 547 | local advDrawB = role:getProperty("advDrawB") | 547 | local advDrawB = role:getProperty("advDrawB") |