灵兽羁绊修改提交

dev_chengFeng
jiaoyangna 2021-03-16 11:10:09 +08:00
parent 7215433a87
commit 27859eec4f
1 changed files with 13 additions and 10 deletions

View File

@ -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