【四象心法】技能加成bug修改

dev_chengFeng
yuanshuai 2021-09-17 15:18:50 +08:00
parent a54cd46bc4
commit b0c69c81a8
1 changed files with 5 additions and 5 deletions

View File

@ -34,18 +34,18 @@ function this:OnShow(_parent,...)
local index=0
this.title.text=string.format("四象心法-%s",professionName)
local fourQuadConfigArr = ConfigManager.GetConfig(ConfigName.FourQuadrantConfig)
LogRed("四象心法config"..#fourQuadConfigArr)
for i, configInfo in ConfigPairs(fourQuadConfigArr) do
if configInfo.Star>0 then
local PassiveSkillId=configInfo.Skill[professionId]
local passiveSkillConfig= ConfigManager.GetConfigData(ConfigName.PassiveSkillConfig,PassiveSkillId)
local propId=configInfo.Skill[professionId][1]
local propAdd=configInfo.Skill[professionId][2]/100
local propertyConfig= ConfigManager.GetConfigDataByKey(ConfigName.PropertyConfig,"PropertyId",propId)
local textObj =this.addList.transform:GetChild(index)
index=index+1
local skillText=textObj:GetComponent("Text")
if configInfo.Star==professionLv then
skillText.text=string.format("<color=#18FF00>%s级%s</color>",fourQuadConfigArr[i].Star,passiveSkillConfig.Desc)
skillText.text=string.format("<color=#18FF00>%s级全体神将%s+%s%%</color>",fourQuadConfigArr[i].Star,propertyConfig.Info,propAdd)
else
skillText.text=string.format("<color=#AEBEB6>%s级%s</color>",fourQuadConfigArr[i].Star,passiveSkillConfig.Desc)
skillText.text=string.format("<color=#AEBEB6>%s级全体神将%s+%s%%</color>",fourQuadConfigArr[i].Star,propertyConfig.Info,propAdd)
end
textObj.gameObject:SetActive(true)
end