Commit aa4838cbc701b386f944252dad100a1fc61ea028
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 | 853 | elseif values[1] == HeroQuality.SSR then |
| 854 | 854 | weight = unitPool["up_ssr_weight"] |
| 855 | 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 | 860 | end |
| 857 | 861 | --print(poolId, rand_v, weight, up_pool, values[1]) |
| 858 | 862 | if rand_v < weight and up_pool then | ... | ... |