天书秘卷
parent
0cdd115646
commit
9f2d86c2a1
|
@ -51,7 +51,7 @@ end
|
||||||
|
|
||||||
--异常断线--
|
--异常断线--
|
||||||
function Network:OnException()
|
function Network:OnException()
|
||||||
SysPanel.ShowOne(Language[12110], function()
|
MsgPanel.ShowOne(Language[12110], function()
|
||||||
Game.Logout()
|
Game.Logout()
|
||||||
end)
|
end)
|
||||||
self.bIsStartListenHeartBeat = false
|
self.bIsStartListenHeartBeat = false
|
||||||
|
@ -116,14 +116,14 @@ end
|
||||||
|
|
||||||
function Network:OnConnectFail()
|
function Network:OnConnectFail()
|
||||||
RequestPanel.Hide()
|
RequestPanel.Hide()
|
||||||
SysPanel.ShowOne(Language[12113])
|
MsgPanel.ShowOne(Language[12113])
|
||||||
end
|
end
|
||||||
|
|
||||||
--重连3次失败
|
--重连3次失败
|
||||||
function Network:OnReconnectFail()
|
function Network:OnReconnectFail()
|
||||||
-- 重连时间超过2分钟强制回到登录界面
|
-- 重连时间超过2分钟强制回到登录界面
|
||||||
if Time.time - self.ReconnectTime > 120 then
|
if Time.time - self.ReconnectTime > 120 then
|
||||||
SysPanel.ShowTwo(Language[12235], function()
|
MsgPanel.ShowTwo(Language[12235], function()
|
||||||
Game.Logout()
|
Game.Logout()
|
||||||
end, Language[12117])
|
end, Language[12117])
|
||||||
end
|
end
|
||||||
|
@ -131,7 +131,7 @@ function Network:OnReconnectFail()
|
||||||
self.re_resendTimes = self.re_resendTimes + 1
|
self.re_resendTimes = self.re_resendTimes + 1
|
||||||
if self.re_resendTimes > self.re_maxResendTimes then
|
if self.re_resendTimes > self.re_maxResendTimes then
|
||||||
RequestPanel.Hide()
|
RequestPanel.Hide()
|
||||||
SysPanel.ShowTwo(Language[12114], function()
|
MsgPanel.ShowTwo(Language[12114], function()
|
||||||
Game.Logout()
|
Game.Logout()
|
||||||
end, function()
|
end, function()
|
||||||
if self.isConnected then
|
if self.isConnected then
|
||||||
|
@ -318,7 +318,7 @@ function Network:Update()
|
||||||
MyPCall(self.sendFunc)
|
MyPCall(self.sendFunc)
|
||||||
elseif self.resendTimes == self.maxResendTimes then
|
elseif self.resendTimes == self.maxResendTimes then
|
||||||
RequestPanel.Hide()
|
RequestPanel.Hide()
|
||||||
SysPanel.ShowTwo(Language[12121], function()
|
MsgPanel.ShowTwo(Language[12121], function()
|
||||||
Game.Logout()
|
Game.Logout()
|
||||||
end, function()
|
end, function()
|
||||||
-- if self:IsSending() then
|
-- if self:IsSending() then
|
||||||
|
|
|
@ -68,6 +68,10 @@ function this.UpdateBagData(_itemData, isNoSendNewItemEvent)
|
||||||
this.bagDatas[itemdata.id].endingTime = itemdata.endingTime
|
this.bagDatas[itemdata.id].endingTime = itemdata.endingTime
|
||||||
this.bagDatas[itemdata.id].nextFlushTime = itemdata.nextFlushTime
|
this.bagDatas[itemdata.id].nextFlushTime = itemdata.nextFlushTime
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if itemdata.type == ItemBaseType.SoulPrint then
|
||||||
|
SoulPrintManager.UpdateAllHavedSoulPrint({itemdata.id})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
-- 货币数据
|
-- 货币数据
|
||||||
|
@ -77,7 +81,7 @@ function this.UpdateBagData(_itemData, isNoSendNewItemEvent)
|
||||||
diamond_amount = BagManager.GetItemCountById(16),
|
diamond_amount = BagManager.GetItemCountById(16),
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
|
--
|
||||||
end
|
end
|
||||||
|
|
||||||
---英雄副本独用刷新
|
---英雄副本独用刷新
|
||||||
|
|
|
@ -276,7 +276,9 @@ function this.InitHandBookData(heroHandBook,talismanHandBook)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.SetHeroHandBookListData(heroSId,heroStar)
|
function this.SetHeroHandBookListData(heroSId,heroStar)
|
||||||
|
local isCheck = false
|
||||||
if this.heroHandBook[heroSId] == nil then
|
if this.heroHandBook[heroSId] == nil then
|
||||||
|
isCheck = true
|
||||||
this.heroHandBook[heroSId]={maxStar=0}
|
this.heroHandBook[heroSId]={maxStar=0}
|
||||||
this.heroHandBook[heroSId].maxStar=heroStar
|
this.heroHandBook[heroSId].maxStar=heroStar
|
||||||
else
|
else
|
||||||
|
@ -284,7 +286,9 @@ function this.SetHeroHandBookListData(heroSId,heroStar)
|
||||||
this.heroHandBook[heroSId].maxStar=heroStar
|
this.heroHandBook[heroSId].maxStar=heroStar
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
if isCheck then
|
||||||
|
TianShuMiJuanManger.CheckFetterStatus(1)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
function this.SetEquipHandBookListData(equipSId)
|
function this.SetEquipHandBookListData(equipSId)
|
||||||
if this.equipHandBook[equipSId] == nil then
|
if this.equipHandBook[equipSId] == nil then
|
||||||
|
|
|
@ -270,6 +270,7 @@ function this.InitPokemonsGetrData(_msgPokemonGetList)
|
||||||
for i = 1, #_msgPokemonGetList do
|
for i = 1, #_msgPokemonGetList do
|
||||||
pokemonGet[_msgPokemonGetList[i]] = _msgPokemonGetList[i]
|
pokemonGet[_msgPokemonGetList[i]] = _msgPokemonGetList[i]
|
||||||
end
|
end
|
||||||
|
TianShuMiJuanManger.CheckFetterStatus(3)
|
||||||
end
|
end
|
||||||
|
|
||||||
function this.GetAllPokemonGetDatas()
|
function this.GetAllPokemonGetDatas()
|
||||||
|
|
|
@ -1,12 +1,14 @@
|
||||||
MonsterCampManager = {}
|
TianShuMiJuanManger = {}
|
||||||
local this = TianShuMiJuanManger
|
local this = TianShuMiJuanManger
|
||||||
this.fetterData = {}
|
|
||||||
--读表
|
--读表
|
||||||
function this.Initialize()
|
function this.Initialize()
|
||||||
this.fetterData = {}
|
this.fetterData = {}
|
||||||
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.SpiritAnimalBook)) do
|
for k,v in ConfigPairs(ConfigManager.GetConfig(ConfigName.SpiritAnimalBook)) do
|
||||||
local configData = this.CreatSingleConfigData(v)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -55,7 +57,7 @@ end
|
||||||
function this.GetAllPokemonFetterDatas(fetterType,curPokemonSidList)
|
function this.GetAllPokemonFetterDatas(fetterType,curPokemonSidList)
|
||||||
local SpiritAnimalBookList = {}
|
local SpiritAnimalBookList = {}
|
||||||
for k,v in pairs(this.fetterData) do
|
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
|
if this.IsCompound(v.teamers,curPokemonSidList) then
|
||||||
v.enabled = 0
|
v.enabled = 0
|
||||||
end
|
end
|
||||||
|
@ -65,7 +67,7 @@ end
|
||||||
|
|
||||||
function this.CheckRedPoint(fetterType)
|
function this.CheckRedPoint(fetterType)
|
||||||
for k,v in pairs(this.fetterData) do
|
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
|
return true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue