英雄觉醒后天赋显示修改

dev_chengFeng
wangzhenxing 2022-02-21 14:25:52 +08:00
parent 096d0d0dc4
commit 51e89fea29
2 changed files with 18 additions and 1 deletions

View File

@ -573,6 +573,23 @@ function GetPassiveByMaxStar(heroConfig,list)
return aaa
end
function GetPassiveByMaxStar2(heroConfig,list,star)
--local OpenPassiveSkillRules = list
local heroRankUp=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.HeroRankupConfig,"Type",2,"OpenStar",star)
if not heroRankUp then
list=heroConfig.OpenPassiveSkillRules
end
local aaa={}
if list then
for i = 1,#list do
if list[i][2]<=heroRankUp.Id then
table.insert(aaa,list[i])
end
end
end
return aaa
end
--把英雄星级父对象和星级传过来 type 1 第6-11个预设 type 2 第12-17个预设 type 3 第18-24个预设
function SetHeroStars(spLoader, starGrid, star, type,_starSize,_scale,_pivot,rotation)

View File

@ -100,7 +100,7 @@ function this.GetNewTalentDataShow()
local upStarSkillDataList = {}
if heroConfig.Awaken then
local Awaken=heroConfig.Awaken
Awaken=GetPassiveByMaxStar(heroConfig,heroConfig.Awaken)
Awaken=GetPassiveByMaxStar2(heroConfig,heroConfig.Awaken,11)
for i = 1, #Awaken do
local Desc = GetLanguageStrById(passiveSkillConfig[Awaken[i][3]].Desc)
if heroConfig.Awaken[i][1] == 1 then--突破