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 | 525 | [2] = 10 |
526 | 526 | } |
527 | 527 | local count = countPool[ctype] |
528 | - if not count then return end | |
528 | + if not count then return 1 end | |
529 | 529 | |
530 | 530 | if ptype == 2 and not role:isFuncOpen(FuncOpenType.AdvEndless) then |
531 | - return | |
531 | + return 2 | |
532 | 532 | end |
533 | 533 | |
534 | 534 | local drawTypeData = csvdb["adv_wheelsurfCsv"][ptype] |
535 | - if not drawTypeData then return end | |
535 | + if not drawTypeData then return 3 end | |
536 | 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 | 539 | local costs = drawData.cost:toNumMap() |
540 | 540 | for id, count_ in pairs(costs) do |
541 | 541 | costs[id] = count_ * count |
542 | 542 | end |
543 | 543 | |
544 | - if not role:checkItemEnough(costs) then return end | |
544 | + if not role:checkItemEnough(costs) then return 5 end | |
545 | 545 | role:costItems(costs) |
546 | 546 | role:addAdvLvExp(costs[ItemId.OldCoin] or 0) |
547 | 547 | local advDrawB = role:getProperty("advDrawB") | ... | ... |