法宝详情界面修改

(cherry picked from commit 0cda425c0d)
tcx_xiyou_zhibo
wangzhenxing 2024-07-05 15:11:34 +08:00 committed by DESKTOP-RH64908\Administrator
parent 7ffae74046
commit fde939b62b
1 changed files with 3 additions and 2 deletions

View File

@ -391,7 +391,8 @@ function FaLingSingleShowPopup:OnShow()
end
skillData.des=skillData.des.."(".. ProfessionType[lvList[i].ShowSkill[2]].."职业佩戴后生效".. ")"
elseif type==2 then
if lv>=lvList[i].Level and self.curHeroData and self.curHeroData.staticId==lvList[i].ShowSkill[2] then
--LogError("lv=========="..lv.." lvList[i].Level=="..lvList[i].Level.." self.curHeroData.staticId=="..self.curHeroData.staticId.." lvList[i].ShowSkill[2]=="..lvList[i].ShowSkill[2])
if lv>=lvList[i].Level and self.curHeroData and self.curHeroData.heroConfig.Id==lvList[i].ShowSkill[2] then
skillData.state=1
end
skillData.des=skillData.des.."(".. heroConfig[lvList[i].ShowSkill[2]].ReadingName .."佩戴后生效".. ")"
@ -418,7 +419,7 @@ function FaLingSingleShowPopup:OnShow()
local info = go:GetComponent("Text")
local skillData=goldSuiteSkill[i]
if skillData.state==1 then
info.text = string.format("<color=#895A24>%s</color>","["..skillData.openLv.."级开启]"..GetLanguageStrById(skillData.des))
info.text = string.format("<color=#1F9E46>%s</color>","["..skillData.openLv.."级开启]"..GetLanguageStrById(skillData.des))
else
info.text = string.format("<color=#895A24>%s</color>","["..skillData.openLv.."级开启]"..GetLanguageStrById(skillData.des))
end