排行榜宝物数据修改

dev_chengFeng
jiaoyangna 2021-08-31 17:50:58 +08:00
parent 82b992c4ca
commit f712786650
6 changed files with 16 additions and 9 deletions

View File

@ -768,6 +768,7 @@ function this.InitSingleTreasureData(_singleData)
single.maxTreeLv = currJewel.GodHoodMaxlv
single.treeLv = single.maxTreeLv or 0
single.fourTotal = _singleData.fourSpirit or 0
single.treePool = currJewel.GodHoodPool
single.upHeroDid=""
local quantity=currJewel.Level
single.quantity=quantity

View File

@ -594,7 +594,7 @@ function this.InitUpdateEquipData(_equipData, heroData)
if(heroData.jewels) then
for i = 1, #heroData.jewels do
if heroData.jewels[i] and heroData.jewels[i] == _equipData.id then
this.InitSingleTreasureData(_equipData)
this.InitSingleTreasureData(_equipData,heroData)
end
end
end
@ -604,7 +604,7 @@ end
local jewelConfig = ConfigManager.GetConfig(ConfigName.JewelConfig)
local allTreasures = {}
--初始化单个宝物的数据
function this.InitSingleTreasureData(_singleData)
function this.InitSingleTreasureData(_singleData,heroData)
if _singleData==nil then
return
end
@ -617,10 +617,11 @@ function this.InitSingleTreasureData(_singleData)
single.refineLv=_singleData.rebuildLevel
single.treeLv = _singleData.treeLv or 0
single.fourTotal = _singleData.fourSpirit or 0
single.treePool = currJewel.GodHoodPool
single.maxLv=currJewel.Max[1]
single.maxRefineLv=currJewel.Max[2]
single.maxTreeLv = currJewel.GodHoodMaxlv
single.upHeroDid=""
single.upHeroDid = heroData.dynamicId
local quantity=currJewel.Level
single.quantity=quantity
single.frame=GetQuantityImageByquality(quantity)
@ -638,6 +639,7 @@ function this.InitSingleTreasureData(_singleData)
single.icon=GetResourcePath(itemConfig[staticId].ResourceID)
single.strongConfig=this.GetCurrTreasureLvConfig(1,currJewel.LevelupPool,_singleData.exp)
single.refineConfig=this.GetCurrTreasureLvConfig(2,currJewel.RankupPool,_singleData.rebuildLevel)
LogGreen("single.treePool:"..single.fourTotal.." _singleData.fourSpirit:".._singleData.fourSpirit)
--LogGreen("天宫推送宝器 _singleData.id ".._singleData.id)
allTreasures[_singleData.id]=single
end

View File

@ -388,6 +388,7 @@ function this.InitSingleTreasureData(_singleData,_fourTotal,_treeLevel)
single.maxTreeLv = currJewel.GodHoodMaxlv
single.treeLv = _treeLevel or 0
single.fourTotal = _fourTotal or 0
single.treePool = currJewel.GodHoodPool
local quantity=currJewel.Level
single.quantity=quantity
single.frame=GetQuantityImageByquality(quantity)

View File

@ -402,11 +402,13 @@ function this.SetPropertyShow2(_infos,_preList,_grid)
for key, value in pairs(attriConfig) do
local obj=_preList[index]
local proper=propertyConfig[value[1]]
local string
if proper.Style==1 then
string = GetLanguageStrById(proper.Info).."+".._infos[value[1]].currValue--value.currValue
else
string = GetLanguageStrById(proper.Info).."+".._infos[value[1]].currValue/100 .."%"
local string = ""
if _infos[value[1]] then
if proper.Style==1 then
string = GetLanguageStrById(proper.Info).."+".._infos[value[1]].currValue--value.currValue
else
string = GetLanguageStrById(proper.Info).."+".._infos[value[1]].currValue/100 .."%"
end
end
if index <= curTree then
string = "<color=#66FF00>"..string.."</color>"

View File

@ -108,6 +108,7 @@ end
--获取当前等级加成的属性
function this.GetCurLvPropertyValue(_type, _id, _lv)
local lvConfig = nil
LogGreen("_type:".._type.." _id:".._id.." _lv:".._lv)
--获取当前等级属性加成
for _, configInfo in ConfigPairs(jewerLevelUpConfig) do
if configInfo.Type == _type and configInfo.PoolID == _id and configInfo.Level == _lv then

View File

@ -587,7 +587,7 @@ function ItemView:NoGetRewardShow(_reward, effectLayer, isShowAddImage)
data = ExpeditionManager.GetSingleTreasureByIdDyn(self.Did)
end
if not data then
GoodFriendManager.GetSingleTreasureByIdDyn(self.Did)
data = GoodFriendManager.GetSingleTreasureByIdDyn(self.Did)
end
if not data then
self.rightUplv.gameObject:SetActive(false)