灵兽升星修改

dev_one_discount hotfix/you_gu/cdn_66_and/1.1.41
wangzhenxing 2023-09-15 15:15:11 +08:00
parent a6c2a99bbb
commit 51003c0c8c
1 changed files with 3 additions and 1 deletions

View File

@ -152,6 +152,7 @@ function this.OnShowData()
table.insert(upStarMaterialsData,curUpStarConfig.ConsumeRes[i])
end
isUpStarMaterials = 0
curUpStarSelectPokemonData = {}
for i = 1, #upStarMaterialsPre do
local itemParent = Util.GetGameObject(upStarMaterialsPre[i],"itemParent")
local num = Util.GetGameObject(upStarMaterialsPre[i],"num"):GetComponent("Text")
@ -162,9 +163,10 @@ function this.OnShowData()
SubUIManager.Open(SubUIConfig.ItemView, itemParent.transform):OnOpen(false, {configMaterialId,0}, 1.3)
local curMaterialBagNum = 0
if spiritAnimal[configMaterialId] then--需要的灵兽
curUpStarSelectPokemonData = {}
--curUpStarSelectPokemonData = {}
local NoUpLvPokemonData = PokemonManager.GetNoUpLvPokemonData(curPokemonData.id,curPokemonData.dynamicId)
curMaterialBagNum = LengthOfTable(NoUpLvPokemonData)
for i = 1, #NoUpLvPokemonData do
if i <= configMaterialNum then
-- LogPink("NoUpLvPokemonData[i].dynamicId "..NoUpLvPokemonData[i].dynamicId)