Commit 314ae3f4443dcb06b18acfc0704c931c0c220acf

Authored by chenyueqi
1 parent f3c37873

新手引导抽的时候必送丝路德

Showing 1 changed file with 3 additions and 1 deletions   Show diff stats
src/actions/HeroAction.lua
... ... @@ -692,6 +692,7 @@ function _M.drawHeroRpc(agent, data)
692 692 if not role:isFuncUnlock(FuncUnlock.GetHero) then return end
693 693 local btype = msg.pool -- 1 2 3 4
694 694 local drawType = msg.type -- 1 单抽 2 十连
  695 + local guide = msg.guide -- 是否是引导抽的
695 696  
696 697 local buildTypeData = csvdb["build_typeCsv"][btype]
697 698 if not buildTypeData then return 1 end
... ... @@ -850,7 +851,8 @@ function _M.drawHeroRpc(agent, data)
850 851 end
851 852 end
852 853  
853   - local itemId = math.randWeight(resultPool, 1)
  854 + -- 引导必送 613 丝路德
  855 + local itemId = guide and 613 or math.randWeight(resultPool, 1)
854 856 local itemData = csvdb["itemCsv"][itemId]
855 857 if itemData.quality == 4 then
856 858 ssrCount = ssrCount + 1
... ...