生命卡修改提交

onepiece_demo_arena
wangzhenxing 2024-01-16 11:21:17 +08:00
parent 3ef9425ae0
commit 7a232cc185
3 changed files with 13 additions and 3 deletions

View File

@ -128,9 +128,15 @@ end
--检测法灵强化红点
function this.CheckEquipStrongRedPoint(_did)
local data=this.allEquipData[_did]
if data then
local isEnough=false
local special=ConfigManager.GetConfigData(ConfigName.SpecialConfig,156)
local maxLv=tonumber(special.Value)
if data.lv==maxLv then
return false
end
--检测法宝能否升级
local config=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.EquipTalismana,"TalismanaId",data.staticId,"Level",data.lv)
if config then

View File

@ -420,7 +420,7 @@ function FaLingSingleShowPopup:OnShow()
local info = go:GetComponent("Text")
local skillData=goldSuiteSkill[i]
if skillData.state==1 then
info.text = string.format("<color=#00ff66>%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=#574141>%s</color>","["..skillData.openLv.."级开启]"..GetLanguageStrById(skillData.des))
end

View File

@ -7,6 +7,7 @@ local heroConfig=ConfigManager.GetConfig(ConfigName.HeroConfig)
local EquipStrengthen = ConfigManager.GetConfig(ConfigName.EquipStrengthen)
local EquipRankUp = ConfigManager.GetConfig(ConfigName.EquipRankUp)
local suitConFig = ConfigManager.GetConfig(ConfigName.EquipSuiteConfig)
local maxLv=tonumber(ConfigManager.GetConfigData(ConfigName.SpecialConfig,156).Value)
local _BaseProList = {}--基础属性对象
local _superProList = {}--白金属性对象
local _costProList = {} --护佑对象
@ -174,6 +175,9 @@ function FaLingStrongPopup:OnShow()
self.star:SetActive(false)
end
local nextLvData=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.EquipTalismana,"TalismanaId",self.equipData.staticId,"Level",lv+1)
if lv>=maxLv then
nextLvData=nil
end
self.btnStrong:SetActive(nextLvData~=nil)
for _, pro in ipairs(_BaseProList) do
pro:SetActive(false)
@ -266,7 +270,7 @@ function FaLingStrongPopup:OnShow()
local skillData=goldSuiteSkill[i]
if skillData.state==1 then
info.text = string.format("<color=#00ff66>%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=#574141>%s</color>","["..skillData.openLv.."级开启]"..GetLanguageStrById(skillData.des))
end
@ -275,7 +279,7 @@ function FaLingStrongPopup:OnShow()
else
self.superPro:SetActive(false)
end
--消耗信息
self:ShowCostInfo()
--(此处需要三遍才能完全打开)