法相属性显示修改
parent
7f20d17b42
commit
ff6f452f32
|
@ -361,7 +361,7 @@ function RewardTalismanSingleShowPopup2:OnShow()
|
|||
local baseInfo=nil
|
||||
local skills=nil
|
||||
if self.position>6 then
|
||||
baseInfo = FaXiangManager.GetCurLvPropertyValue(self.equipData.levelPool,self.equipData.lv)
|
||||
baseInfo = FaXiangManager.GetCurLvPropertyValue(self.equipData.levelPool,self.equipData.lv,self.equipData.refinePool,self.equipData.refineLv)
|
||||
self.treeAttri:SetActive(false)
|
||||
self.refineAttri:SetActive(false)
|
||||
if equipConfigData.PassiveSkill and #equipConfigData.PassiveSkill>0 then
|
||||
|
|
|
@ -509,6 +509,27 @@ function this.GetCostItems(_config)
|
|||
return items,isEnough
|
||||
end
|
||||
|
||||
function this.CheckIsCanUpFaXiang(_heroData)
|
||||
if not _heroData then
|
||||
return false
|
||||
end
|
||||
local faxiang=_heroData.faxiang
|
||||
if faxiang==nil or #faxiang==0 then
|
||||
local list=this.GetAllTreasuresCanUp(_heroData)
|
||||
if list and #list>0 then
|
||||
return true
|
||||
end
|
||||
else
|
||||
for i = 1, #faxiang do
|
||||
local isRed=this.CheckIsShowRed(faxiang[i],0)
|
||||
if isRed then
|
||||
return isRed
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
end
|
||||
|
||||
|
||||
--检测是否显示红点
|
||||
function this.CheckIsShowRed(_id,_type)
|
||||
|
@ -532,13 +553,19 @@ function this.CheckIsShowRed(_id,_type)
|
|||
return isStar
|
||||
end
|
||||
else
|
||||
|
||||
if faxiang.lv~=faxiang.maxLv then
|
||||
cost1,isLv=this.GetFaXiangLevelCost(faxiang.levelPool,faxiang.lv)
|
||||
return isLv
|
||||
if isLv then
|
||||
return isLv
|
||||
end
|
||||
|
||||
end
|
||||
if faxiang.refineLv~=faxiang.maxRefineLv then
|
||||
cost2,isStar=this.GetFaXiangStarCost(faxiang.refinePool,faxiang.refineLv,faxiang)
|
||||
return isStar
|
||||
if isStar then
|
||||
return isStar
|
||||
end
|
||||
end
|
||||
end
|
||||
return false
|
||||
|
@ -616,7 +643,7 @@ end
|
|||
|
||||
|
||||
--获取当前等级加成的属性
|
||||
function this.GetCurLvPropertyValue(_id, _lv, _isShow)
|
||||
function this.GetCurLvPropertyValue(_id, _lv, _starPool,_star,_isShow)
|
||||
local lvConfig = nil
|
||||
local isShow = _isShow == true
|
||||
--获取当前等级属性加成
|
||||
|
@ -646,7 +673,13 @@ function this.GetCurLvPropertyValue(_id, _lv, _isShow)
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
local starConfig=ConfigManager.TryGetConfigDataByDoubleKey(ConfigName.FaxiangStarConfig,"PoolId",_starPool,"Level",_star)
|
||||
if starConfig then
|
||||
for j = 1, #proList do
|
||||
local Para=starConfig.StarPara/10000
|
||||
proList[j].currValue=math.floor(proList[j].currValue * (1 + Para))
|
||||
end
|
||||
end
|
||||
return proList
|
||||
end
|
||||
|
||||
|
|
|
@ -1137,6 +1137,7 @@ function this.CheckRedTab()
|
|||
|
||||
redTabs[i].gameObject:SetActive(isCanUpEquipTreasure and isUpZhen and isRed)
|
||||
elseif i==6 then
|
||||
--redTabs[i].gameObject:SetActive(FaXiangManager.CheckIsCanUpFaXiang(curHeroData))
|
||||
redTabs[i].gameObject:SetActive(false)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue