parent
0a7415917a
commit
6065193f9d
|
@ -139,6 +139,23 @@ function this.GetCanUpZhenPokemonDatas(curUpZhenPokemonData)
|
||||||
end
|
end
|
||||||
return curAllPokemonList
|
return curAllPokemonList
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
--获取当前可以上阵的灵兽数据
|
||||||
|
function this.GetNoUpFigthPokemonDatas()
|
||||||
|
local upZhenSidList = this.GetAllPokemonFormationDids()
|
||||||
|
local curAllPokemonList = {}
|
||||||
|
for key, value in pairs(pokemons) do
|
||||||
|
if not upZhenSidList[value.dynamicId] then
|
||||||
|
table.insert(curAllPokemonList,value)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
return curAllPokemonList
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
--移除灵兽数据
|
--移除灵兽数据
|
||||||
function this.RemoveSinglePokemonData(_did)
|
function this.RemoveSinglePokemonData(_did)
|
||||||
if not _did then return end
|
if not _did then return end
|
||||||
|
|
|
@ -430,11 +430,12 @@ function SpecailTrainingInfoPopup:SetSingleData(index,_go,_data)
|
||||||
elseif tData.NeedItem1[i][1]== 53 then
|
elseif tData.NeedItem1[i][1]== 53 then
|
||||||
tmpData[i].type=4
|
tmpData[i].type=4
|
||||||
end
|
end
|
||||||
if tData.NeedItem1[i][1]== 56 then
|
if tData.NeedItem1[i][1]== 56 then
|
||||||
tmpData[i].Name= ItemBaseTypeName[tData.NeedItem1[i][2]]
|
tmpData[i].Name=ItemBaseTypeName[tData.NeedItem1[i][2]]
|
||||||
else
|
else
|
||||||
tmpData[i].Name= ItemTypeName[tData.NeedItem1[i][1]]
|
tmpData[i].Name=ItemTypeName[tData.NeedItem1[i][1]]
|
||||||
end
|
end
|
||||||
|
tmpData[i].qua=tData.NeedItem1[i][3]
|
||||||
end
|
end
|
||||||
local index=#tmpData
|
local index=#tmpData
|
||||||
for i=index+1,index+#tData.NeedHero do
|
for i=index+1,index+#tData.NeedHero do
|
||||||
|
|
|
@ -117,7 +117,7 @@ function TrainingItemListPanel:OnOpen(_curData,_func,NeedNum,selectItems1,select
|
||||||
end
|
end
|
||||||
elseif _curData.type==3 then
|
elseif _curData.type==3 then
|
||||||
|
|
||||||
local pokemonList = PokemonManager.GetCanUpZhenPokemonDatas()
|
local pokemonList = PokemonManager.GetNoUpFigthPokemonDatas()
|
||||||
local index=0
|
local index=0
|
||||||
for i=1,#pokemonList do
|
for i=1,#pokemonList do
|
||||||
local v={}
|
local v={}
|
||||||
|
@ -136,9 +136,11 @@ function TrainingItemListPanel:OnOpen(_curData,_func,NeedNum,selectItems1,select
|
||||||
v.returnCoin=config.CoinReturn
|
v.returnCoin=config.CoinReturn
|
||||||
v.frame=GetHeroQuantityImageByquality(config.Quality)
|
v.frame=GetHeroQuantityImageByquality(config.Quality)
|
||||||
v.num=1
|
v.num=1
|
||||||
table.insert(heroOrItemDataList,v)
|
--LogError("v.quality==================="..v.quality)
|
||||||
|
--LogError("curdata.qua=================="..curData.qua)
|
||||||
|
if curData.qua==v.quality then
|
||||||
|
table.insert(heroOrItemDataList,v)
|
||||||
|
end
|
||||||
-- heroOrItemDataList[i]=itemDatas[i]
|
-- heroOrItemDataList[i]=itemDatas[i]
|
||||||
end
|
end
|
||||||
elseif _curData.type == 4 then
|
elseif _curData.type == 4 then
|
||||||
|
|
Loading…
Reference in New Issue