【摘星阁】装备属性
parent
e93b2816b4
commit
91f9589043
|
@ -284,22 +284,6 @@ function RewardEquipSingleShowPopup2:OnShow()
|
||||||
else
|
else
|
||||||
vText.text = GetPropertyFormatStr(proConfigData.Style, prop[2])
|
vText.text = GetPropertyFormatStr(proConfigData.Style, prop[2])
|
||||||
end
|
end
|
||||||
--摘星阁加持
|
|
||||||
-- if self.equipData.homeEquipLv and self.equipData.homeEquipLv[1] > 0 and proConfigData.Style == 1 then
|
|
||||||
-- local num = HomeLandManager.LevelToValue(self.equipData.homeEquipLv,self.equipData.position)
|
|
||||||
-- -- hText.text = string.format("(摘星阁加持:%s",num).."%)"
|
|
||||||
-- local power = math.ceil(prop[2]*(num/100))
|
|
||||||
|
|
||||||
-- if not _specialAttri then
|
|
||||||
-- _specialAttri = newObjToParent(self.baseProPre, self.baseProGrid)
|
|
||||||
-- end
|
|
||||||
-- _specialAttri:SetActive(true)
|
|
||||||
-- _specialAttri:GetComponent("Text").text = GetLanguageStrById(proConfigData.Info)
|
|
||||||
-- local sText = Util.GetGameObject(_specialAttri, "curProVale"):GetComponent("Text")
|
|
||||||
-- sText.text = "+"..GetPropertyFormatStr(proConfigData.Style, power)
|
|
||||||
-- Util.GetGameObject(sText.gameObject, "homeValue"):GetComponent("Text").text = string.format("(摘星阁加持:%s",num).."%)"--摘星阁加持文字显示位置
|
|
||||||
|
|
||||||
-- end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
@ -307,24 +291,26 @@ function RewardEquipSingleShowPopup2:OnShow()
|
||||||
end
|
end
|
||||||
|
|
||||||
--homePro基础属性
|
--homePro基础属性
|
||||||
if equipConfigData.Property then
|
if self.equipData.homeEquipLv and self.equipData.homeEquipLv[1] > 0 and self.curHeroData then
|
||||||
|
self.homePro:SetActive(true)
|
||||||
for _, pro in ipairs(_homeProList) do
|
for _, pro in ipairs(_homeProList) do
|
||||||
pro:SetActive(false)
|
pro:SetActive(false)
|
||||||
end
|
end
|
||||||
for index, prop in ipairs(equipConfigData.Property) do
|
if equipConfigData.Property then
|
||||||
local proConfigData = ConfigManager.GetConfigData(ConfigName.PropertyConfig, prop[1])
|
for index, prop in ipairs(equipConfigData.Property) do
|
||||||
if proConfigData and self.equipData.homeEquipLv and self.equipData.homeEquipLv[1] > 0 and proConfigData.Style == 1 then
|
local proConfigData = ConfigManager.GetConfigData(ConfigName.PropertyConfig, prop[1])
|
||||||
self.homePro:SetActive(true)
|
if proConfigData and proConfigData.Style == 1 then
|
||||||
local num = HomeLandManager.LevelToValue(self.equipData.homeEquipLv,self.equipData.position)
|
local num = HomeLandManager.LevelToValue(self.equipData.homeEquipLv,self.equipData.position)
|
||||||
local power = math.ceil(prop[2]*(num/100))
|
local power = math.ceil(prop[2]*(num/100))
|
||||||
if not _homeProList[index] then
|
if not _homeProList[index] then
|
||||||
_homeProList[index] = newObjToParent(self.homeProPre, self.homeProGrid)
|
_homeProList[index] = newObjToParent(self.homeProPre, self.homeProGrid)
|
||||||
|
end
|
||||||
|
_homeProList[index]:SetActive(true)
|
||||||
|
_homeProList[index]:GetComponent("Text").text = GetLanguageStrById(proConfigData.Info)
|
||||||
|
local sText = Util.GetGameObject(_homeProList[index], "curProVale"):GetComponent("Text")
|
||||||
|
sText.text = "+"..GetPropertyFormatStr(proConfigData.Style, power)
|
||||||
|
Util.GetGameObject(sText.gameObject, "homeValue"):GetComponent("Text").text = string.format("(摘星阁加持:%s",num).."%)"--摘星阁加持文字显示位置
|
||||||
end
|
end
|
||||||
_homeProList[index]:SetActive(true)
|
|
||||||
_homeProList[index]:GetComponent("Text").text = GetLanguageStrById(proConfigData.Info)
|
|
||||||
local sText = Util.GetGameObject(_homeProList[index], "curProVale"):GetComponent("Text")
|
|
||||||
sText.text = "+"..GetPropertyFormatStr(proConfigData.Style, power)
|
|
||||||
Util.GetGameObject(sText.gameObject, "homeValue"):GetComponent("Text").text = string.format("(摘星阁加持:%s",num).."%)"--摘星阁加持文字显示位置
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue