Commit bb10924f186da55d0e93036a8885baff3054220b

Authored by liuzujun
1 parent 84c2734c

10连保底使用池子全随机

Showing 2 changed files with 6 additions and 3 deletions   Show diff stats
src/actions/HeroAction.lua
@@ -788,8 +788,11 @@ function _M.drawHeroRpc(agent, data) @@ -788,8 +788,11 @@ function _M.drawHeroRpc(agent, data)
788 local heroData = csvdb["unitCsv"][itemData.id - ItemStartId.Hero] 788 local heroData = csvdb["unitCsv"][itemData.id - ItemStartId.Hero]
789 if not heroData then break end 789 if not heroData then break end
790 local ok = true 790 local ok = true
791 - for idx, field in ipairs(condition) do  
792 - if heroData[field] ~= values[idx] then ok = false break end 791 + -- 保底是全随机,不用比较类型
  792 + if not isFloorBack then
  793 + for idx, field in ipairs(condition) do
  794 + if heroData[field] ~= values[idx] then ok = false break end
  795 + end
793 end 796 end
794 if not ok then break end 797 if not ok then break end
795 if oneData[pool_str] > 0 then 798 if oneData[pool_str] > 0 then
1 -Subproject commit ec72516d421103deb40278fc734cb0a5cea64689 1 +Subproject commit b026265df3a1755bad4a83630d7457b790232b3e