【四象心法】添加技能属性加成脚本

dev_chengFeng
yuanshuai 2021-09-14 11:37:34 +08:00
parent f0da745b6c
commit a54cd46bc4
2 changed files with 12 additions and 2 deletions

View File

@ -43,9 +43,9 @@ function this:OnShow(_parent,...)
index=index+1
local skillText=textObj:GetComponent("Text")
if configInfo.Star==professionLv then
skillText.text=string.format("<color=#18FF00>%s级所有%s神将%s</color>",fourQuadConfigArr[i].Star,professionName,passiveSkillConfig.Desc)
skillText.text=string.format("<color=#18FF00>%s级%s</color>",fourQuadConfigArr[i].Star,passiveSkillConfig.Desc)
else
skillText.text=string.format("<color=#AEBEB6>%s级所有%s神将%s</color>",fourQuadConfigArr[i].Star,professionName,passiveSkillConfig.Desc)
skillText.text=string.format("<color=#AEBEB6>%s级%s</color>",fourQuadConfigArr[i].Star,passiveSkillConfig.Desc)
end
textObj.gameObject:SetActive(true)
end

View File

@ -502,6 +502,7 @@ function this.HeroCalculateFourQuaWarForce(_professionId)
end
end
end
--计算共鸣属性加成
if this.GetFourQuadrantGongmingLv()>0 then
local fourQuadConfig = ConfigManager.GetConfigDataByKey(ConfigName.FourQuadrantConfig,"Star",this.GetFourQuadrantGongmingLv())
for i = 1, #fourQuadConfig.PropResonance do
@ -513,6 +514,15 @@ function this.HeroCalculateFourQuaWarForce(_professionId)
end
end
end
-- 计算技能属性加成
for key,value in pairs(this.FourQuadrantData) do
if value.level>0 then
local fourQuadConfig = ConfigManager.GetConfigDataByKey(ConfigName.FourQuadrantConfig,"Star",value.level)
local professionSkillAdd=fourQuadConfig.Skill[key]
addAllProVal[professionSkillAdd[1]]=professionSkillAdd[2]
end
end
return addAllProVal
end