diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 0b41762..1ceec92 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -717,18 +717,18 @@ function _M.drawHeroRpc(agent, data) local drawType = msg.type -- 1 单抽 2 十连 local buildTypeData = csvdb["build_typeCsv"][pool] - if not buildTypeData then return end + if not buildTypeData then return 1 end local costs = {{"draw_card", "draw_coin"}, {"draw10_card", "draw10_coin"}} -- 抽取消耗 local drawCount = {1, 10} -- 抽取次数 local costT = costs[drawType] - if not costT then return end + if not costT then return 2 end local cost = buildTypeData[costT[1]]:toNumMap() if not role:checkItemEnough(cost) then cost = buildTypeData[costT[2]]:toNumMap() if not role:checkItemEnough(cost) then - return + return 3 end end @@ -778,9 +778,9 @@ function _M.drawHeroRpc(agent, data) end, } - if not fillPoolFunc[rateTypes[rateType]] then return end + if not fillPoolFunc[rateTypes[rateType]] then return 4 end fillPoolFunc[rateTypes[rateType]]() - if not next(resultPool) then return end + if not next(resultPool) then return 5 end role:costItems(cost) local reward = {} -- libgit2 0.21.2