From 314ae3f4443dcb06b18acfc0704c931c0c220acf Mon Sep 17 00:00:00 2001 From: chenyueqi <1056825054@qq.com> Date: Sat, 6 Jun 2020 14:59:16 +0800 Subject: [PATCH] 新手引导抽的时候必送丝路德 --- src/actions/HeroAction.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/actions/HeroAction.lua b/src/actions/HeroAction.lua index 88d5195..690d6ce 100644 --- a/src/actions/HeroAction.lua +++ b/src/actions/HeroAction.lua @@ -692,6 +692,7 @@ function _M.drawHeroRpc(agent, data) if not role:isFuncUnlock(FuncUnlock.GetHero) then return end local btype = msg.pool -- 1 2 3 4 local drawType = msg.type -- 1 单抽 2 十连 + local guide = msg.guide -- 是否是引导抽的 local buildTypeData = csvdb["build_typeCsv"][btype] if not buildTypeData then return 1 end @@ -850,7 +851,8 @@ function _M.drawHeroRpc(agent, data) end end - local itemId = math.randWeight(resultPool, 1) + -- 引导必送 613 丝路德 + local itemId = guide and 613 or math.randWeight(resultPool, 1) local itemData = csvdb["itemCsv"][itemId] if itemData.quality == 4 then ssrCount = ssrCount + 1 -- libgit2 0.21.2