羁绊报错修改提交

PC-202302260912\Administrator 2024-04-17 16:43:02 +08:00
parent 006c840e61
commit 6681e52bbf
3 changed files with 3 additions and 3 deletions

View File

@ -235,7 +235,7 @@ end
--
function this.AddEquipToList(_data)
local single=this.initSingleData(_data)
if CheckListIsContainValue1(PlayerManager.handBook[6],single.staticId)==false then
if PlayerManager.handBook[6] and CheckListIsContainValue1(PlayerManager.handBook[6],single.staticId)==false then
table.insert(PlayerManager.handBook[6],single.staticId)
TianShuMiJuanManger.CheckFetterStatus(6)
end

View File

@ -140,7 +140,7 @@ end
function this.SetItemDataByid(id,state,pos)
if not this.itemDataList[id] then
this.CreatEmptyItemData(id)
if CheckListIsContainValue1(PlayerManager.handBook[8],id)==false then
if PlayerManager.handBook[8] and CheckListIsContainValue1(PlayerManager.handBook[8],id)==false then
table.insert(PlayerManager.handBook[8],id)
TianShuMiJuanManger.CheckFetterStatus(8)
end

View File

@ -53,7 +53,7 @@ function this.InitSingleTreasureData(_singleData,notAdd)
single.refineConfig = this.GetCurrTreasureLvConfig(2, currJewel.Star, _singleData.rebuildLevel)
allTreasures[_singleData.id] = single
-- end
if CheckListIsContainValue1(PlayerManager.handBook[7],staticId)==false then
if PlayerManager.handBook[7] and CheckListIsContainValue1(PlayerManager.handBook[7],staticId)==false then
table.insert(PlayerManager.handBook[7],staticId)
TianShuMiJuanManger.CheckFetterStatus(7)
end