英雄觉醒后天赋显示修改
parent
096d0d0dc4
commit
51e89fea29
|
@ -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)
|
||||
|
|
|
@ -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--突破
|
||||
|
|
Loading…
Reference in New Issue