灵兽羁绊修改提交
parent
7215433a87
commit
27859eec4f
|
|
@ -298,16 +298,19 @@ function this.GetAllPokemonFetterDatas()
|
|||
local singPokemonFetterData = {}
|
||||
local curPokemonSidList = this.GetAllPokemonGetDatas()
|
||||
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.SpiritAnimalBook)) do
|
||||
local singPokemonFetterData = {}
|
||||
singPokemonFetterData.id = v.Id
|
||||
if pokemonFetter and pokemonFetter[singPokemonFetterData.id] then
|
||||
singPokemonFetterData.enabled = 1--已经激活的
|
||||
elseif this.IsCompound(v.Teamers,curPokemonSidList) then
|
||||
singPokemonFetterData.enabled = 0--可以激活的
|
||||
else
|
||||
singPokemonFetterData.enabled = -1--不能激活的
|
||||
end
|
||||
table.insert(SpiritAnimalBookList,singPokemonFetterData)
|
||||
if v.Type == 3 then
|
||||
local singPokemonFetterData = {}
|
||||
singPokemonFetterData.id = v.Id
|
||||
if pokemonFetter and pokemonFetter[singPokemonFetterData.id] then
|
||||
singPokemonFetterData.enabled = 1--已经激活的
|
||||
elseif this.IsCompound(v.Teamers,curPokemonSidList) then
|
||||
singPokemonFetterData.enabled = 0--可以激活的
|
||||
else
|
||||
singPokemonFetterData.enabled = -1--不能激活的
|
||||
end
|
||||
table.insert(SpiritAnimalBookList,singPokemonFetterData)
|
||||
end
|
||||
|
||||
end
|
||||
-- LogGreen("#SpiritAnimalBookList:"..#SpiritAnimalBookList)
|
||||
return SpiritAnimalBookList
|
||||
|
|
|
|||
Loading…
Reference in New Issue