Commit fa2af5956028acd7a72bbd9f019c7873a373b496
1 parent
320f5b54
给保底抽配置加默认值10
Showing
2 changed files
with
3 additions
and
2 deletions
Show diff stats
src/actions/HeroAction.lua
@@ -726,6 +726,7 @@ function _M.drawHeroRpc(agent, data) | @@ -726,6 +726,7 @@ function _M.drawHeroRpc(agent, data) | ||
726 | subType = 2 | 726 | subType = 2 |
727 | end | 727 | end |
728 | end | 728 | end |
729 | + print(btype, subType, role:getProperty("newerDraw")) | ||
729 | 730 | ||
730 | -- 另开活动卡池 | 731 | -- 另开活动卡池 |
731 | if actid then | 732 | if actid then |
@@ -761,7 +762,7 @@ function _M.drawHeroRpc(agent, data) | @@ -761,7 +762,7 @@ function _M.drawHeroRpc(agent, data) | ||
761 | local drawCount = {1, 10} -- 抽取次数 | 762 | local drawCount = {1, 10} -- 抽取次数 |
762 | if not drawCount[drawType] then return 3 end | 763 | if not drawCount[drawType] then return 3 end |
763 | 764 | ||
764 | - local draw_floor_back_counts = globalCsv.draw_floor_back_counts[btype] | 765 | + local draw_floor_back_counts = globalCsv.draw_floor_back_counts[btype] or 10 |
765 | local floorHeroCount = role:getProperty("floorHero")[btype] or 0 | 766 | local floorHeroCount = role:getProperty("floorHero")[btype] or 0 |
766 | 767 | ||
767 | -- 计算抽卡消耗品 | 768 | -- 计算抽卡消耗品 |