Commit 314ae3f4443dcb06b18acfc0704c931c0c220acf
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,6 +692,7 @@ function _M.drawHeroRpc(agent, data) | ||
692 | if not role:isFuncUnlock(FuncUnlock.GetHero) then return end | 692 | if not role:isFuncUnlock(FuncUnlock.GetHero) then return end |
693 | local btype = msg.pool -- 1 2 3 4 | 693 | local btype = msg.pool -- 1 2 3 4 |
694 | local drawType = msg.type -- 1 单抽 2 十连 | 694 | local drawType = msg.type -- 1 单抽 2 十连 |
695 | + local guide = msg.guide -- 是否是引导抽的 | ||
695 | 696 | ||
696 | local buildTypeData = csvdb["build_typeCsv"][btype] | 697 | local buildTypeData = csvdb["build_typeCsv"][btype] |
697 | if not buildTypeData then return 1 end | 698 | if not buildTypeData then return 1 end |
@@ -850,7 +851,8 @@ function _M.drawHeroRpc(agent, data) | @@ -850,7 +851,8 @@ function _M.drawHeroRpc(agent, data) | ||
850 | end | 851 | end |
851 | end | 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 | local itemData = csvdb["itemCsv"][itemId] | 856 | local itemData = csvdb["itemCsv"][itemId] |
855 | if itemData.quality == 4 then | 857 | if itemData.quality == 4 then |
856 | ssrCount = ssrCount + 1 | 858 | ssrCount = ssrCount + 1 |