天书秘卷

dev_chengFeng
jiaoyangna 2021-03-17 14:29:34 +08:00
parent 0cdd115646
commit 9f2d86c2a1
5 changed files with 23 additions and 12 deletions

View File

@ -51,7 +51,7 @@ end
--异常断线--
function Network:OnException()
SysPanel.ShowOne(Language[12110], function()
MsgPanel.ShowOne(Language[12110], function()
Game.Logout()
end)
self.bIsStartListenHeartBeat = false
@ -116,14 +116,14 @@ end
function Network:OnConnectFail()
RequestPanel.Hide()
SysPanel.ShowOne(Language[12113])
MsgPanel.ShowOne(Language[12113])
end
--重连3次失败
function Network:OnReconnectFail()
-- 重连时间超过2分钟强制回到登录界面
if Time.time - self.ReconnectTime > 120 then
SysPanel.ShowTwo(Language[12235], function()
MsgPanel.ShowTwo(Language[12235], function()
Game.Logout()
end, Language[12117])
end
@ -131,7 +131,7 @@ function Network:OnReconnectFail()
self.re_resendTimes = self.re_resendTimes + 1
if self.re_resendTimes > self.re_maxResendTimes then
RequestPanel.Hide()
SysPanel.ShowTwo(Language[12114], function()
MsgPanel.ShowTwo(Language[12114], function()
Game.Logout()
end, function()
if self.isConnected then
@ -318,7 +318,7 @@ function Network:Update()
MyPCall(self.sendFunc)
elseif self.resendTimes == self.maxResendTimes then
RequestPanel.Hide()
SysPanel.ShowTwo(Language[12121], function()
MsgPanel.ShowTwo(Language[12121], function()
Game.Logout()
end, function()
-- if self:IsSending() then

View File

@ -68,6 +68,10 @@ function this.UpdateBagData(_itemData, isNoSendNewItemEvent)
this.bagDatas[itemdata.id].endingTime = itemdata.endingTime
this.bagDatas[itemdata.id].nextFlushTime = itemdata.nextFlushTime
end
if itemdata.type == ItemBaseType.SoulPrint then
SoulPrintManager.UpdateAllHavedSoulPrint({itemdata.id})
end
end
-- 货币数据
@ -77,7 +81,7 @@ function this.UpdateBagData(_itemData, isNoSendNewItemEvent)
diamond_amount = BagManager.GetItemCountById(16),
})
end
--
end
---英雄副本独用刷新

View File

@ -276,7 +276,9 @@ function this.InitHandBookData(heroHandBook,talismanHandBook)
end
function this.SetHeroHandBookListData(heroSId,heroStar)
local isCheck = false
if this.heroHandBook[heroSId] == nil then
isCheck = true
this.heroHandBook[heroSId]={maxStar=0}
this.heroHandBook[heroSId].maxStar=heroStar
else
@ -284,7 +286,9 @@ function this.SetHeroHandBookListData(heroSId,heroStar)
this.heroHandBook[heroSId].maxStar=heroStar
end
end
if isCheck then
TianShuMiJuanManger.CheckFetterStatus(1)
end
end
function this.SetEquipHandBookListData(equipSId)
if this.equipHandBook[equipSId] == nil then

View File

@ -270,6 +270,7 @@ function this.InitPokemonsGetrData(_msgPokemonGetList)
for i = 1, #_msgPokemonGetList do
pokemonGet[_msgPokemonGetList[i]] = _msgPokemonGetList[i]
end
TianShuMiJuanManger.CheckFetterStatus(3)
end
function this.GetAllPokemonGetDatas()

View File

@ -1,12 +1,14 @@
MonsterCampManager = {}
TianShuMiJuanManger = {}
local this = TianShuMiJuanManger
this.fetterData = {}
--读表
function this.Initialize()
this.fetterData = {}
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.SpiritAnimalBook)) do
local configData = this.CreatSingleConfigData(v)
this.fetterData[configData.id] = configData
if not this.fetterData[v.Id] then
this.fetterData[v.Id] = {}
end
this.fetterData[v.Id] = configData
end
end
@ -55,7 +57,7 @@ end
function this.GetAllPokemonFetterDatas(fetterType,curPokemonSidList)
local SpiritAnimalBookList = {}
for k,v in pairs(this.fetterData) do
if v.FetterType == fetterType and v.enabled == -1 then
if v.fetterType == fetterType and v.enabled == -1 then
if this.IsCompound(v.teamers,curPokemonSidList) then
v.enabled = 0
end
@ -65,7 +67,7 @@ end
function this.CheckRedPoint(fetterType)
for k,v in pairs(this.fetterData) do
if v.FetterType == fetterType and v.enabled == 0 then
if v.fetterType == fetterType and v.enabled == 0 then
return true
end
end