Commit aa4838cbc701b386f944252dad100a1fc61ea028

Authored by liuzujun
1 parent 1627de1c

心愿卡池根据心愿单英雄数量调整概率

Showing 2 changed files with 5 additions and 1 deletions   Show diff stats
src/actions/HeroAction.lua
@@ -853,6 +853,10 @@ function _M.drawHeroRpc(agent, data) @@ -853,6 +853,10 @@ function _M.drawHeroRpc(agent, data)
853 elseif values[1] == HeroQuality.SSR then 853 elseif values[1] == HeroQuality.SSR then
854 weight = unitPool["up_ssr_weight"] 854 weight = unitPool["up_ssr_weight"]
855 up_pool = unitPool["up_ssr_id"] 855 up_pool = unitPool["up_ssr_id"]
  856 + if btype == 5 then
  857 + local wishPool = role:getProperty("wishPool") or {}
  858 + weight = weight * #wishPool
  859 + end
856 end 860 end
857 --print(poolId, rand_v, weight, up_pool, values[1]) 861 --print(poolId, rand_v, weight, up_pool, values[1])
858 if rand_v < weight and up_pool then 862 if rand_v < weight and up_pool then
1 -Subproject commit 5963ca5e80ac32e27cadf4c2553f1f24af8d9435 1 +Subproject commit fb22d12670f863528582d09b9499198350902990