Hotfix - 1.6.0.85

EN: 1.6.0.85
CN: 1.6.0.88
JP: 1.6.0.89
KR: 1.6.0.92
This commit is contained in:
SL1900
2026-02-09 18:00:00 +09:00
parent 46f967a584
commit 952e8cb875
57 changed files with 8098 additions and 283 deletions
@@ -49,7 +49,7 @@ function BreakOutLevelCellCtrl:SetData(nActId, nLevelId, bIsActEnd)
end
self.LevelId = nLevelId
self.BreakOutData = PlayerData.Activity:GetActivityDataById(nActId)
if self.BreakOutData == nil then
if self.BreakOutData == nil or self.BreakOutData ~= nil and self.BreakOutData:GetLevelData() == nil then
printError("活动 id:" .. self.ActId .. " 数据为空 用本地临时数据初始化")
self:InitErrorSate()
self.levelData = ConfigTable.GetData("BreakOutLevel", self.LevelId)
@@ -154,7 +154,7 @@ function BreakOutLevelCellCtrl:RefreshLevelFinishState()
self._mapNode.img_FinishIcon.gameObject:SetActive(self.BreakOutData:IsLevelComplete(self.LevelId))
end
function BreakOutLevelCellCtrl:OnBtnClick_SelectLevel()
if self.BreakOutData == nil then
if self.BreakOutData == nil or self.BreakOutData ~= nil and self.BreakOutData:GetLevelData() == nil then
return
end
local bTimeUnlock, bPreComplete = self.BreakOutData:IsLevelUnlocked(self.LevelId)
@@ -250,6 +250,7 @@ function BreakOutPlayCtrl:OnEvent_Exit()
local confirmCallback = function()
EventManager.Hit("Close_BattlePause")
EventManager.Hit("BreakOut_Complete", true)
EventManager.Hit("SetBreakOutPlaySkill_Visible", false)
NovaAPI.SetCanvasGroupAlpha(self.Canvas, 0)
local requestCb = function(mapChangeInfo)
local cb = function()
@@ -277,7 +278,7 @@ function BreakOutPlayCtrl:OnEvent_Exit()
local msg = {
nType = AllEnum.MessageBox.Confirm,
sContent = sTip,
callbackConfirm = confirmCallback
callbackConfirmAfterClose = confirmCallback
}
EventManager.Hit(EventId.OpenMessageBox, msg)
end
@@ -58,7 +58,7 @@ function LevelSelectCtrl:Awake()
local actData = self.BreakOut_30101Data:GetActivityDataByIndex(nIndex)
self.nActId = actData.ActivityId
self.BreakOutData = PlayerData.Activity:GetActivityDataById(self.nActId)
if self.BreakOutData == nil then
if self.BreakOutData == nil or self.BreakOutData ~= nil and self.BreakOutData:GetLevelData() == nil then
self.BreakOutData_00 = BreakOutData_00.new()
printError("活动 id:" .. self.nActId .. " 数据为空,开始初始化本地备用数据")
local tableData = {}
@@ -82,7 +82,7 @@ function LevelSelectCtrl:OnDisable()
}
end
function LevelSelectCtrl:OnEnable()
if self.BreakOutData == nil then
if self.BreakOutData == nil or self.BreakOutData ~= nil and self.BreakOutData:GetLevelData() == nil then
printError("活动 id:" .. self.nActId .. " 数据为空,无法记录当前的难度状态默认定位初始难度")
else
local param = self:GetPanelParam()
@@ -163,7 +163,7 @@ function LevelSelectCtrl:RefreshTabIcon()
self:RefreshTabRedIcon()
end
function LevelSelectCtrl:RefreshTabRedIcon()
if self.BreakOutData == nil then
if self.BreakOutData == nil or self.BreakOutData ~= nil and self.BreakOutData:GetLevelData() == nil then
self._mapNode.img_RightIcon:SetActive(false)
self._mapNode.img_LeftIcon:SetActive(false)
return
@@ -188,7 +188,7 @@ function LevelSelectCtrl:RefreshTabRedIcon()
end
function LevelSelectCtrl:RefreshDotsIcon()
local nMaxNum = 4
if self.BreakOutData == nil then
if self.BreakOutData == nil or self.BreakOutData ~= nil and self.BreakOutData:GetLevelData() == nil then
nMaxNum = self.BreakOutData_00:GetBreakoutLevelTypeNum()
else
nMaxNum = self.BreakOutData:GetBreakoutLevelTypeNum()
@@ -218,7 +218,7 @@ function LevelSelectCtrl:SetBanner()
end
end
function LevelSelectCtrl:AddGrids()
if self.BreakOutData == nil then
if self.BreakOutData == nil or self.BreakOutData ~= nil and self.BreakOutData:GetLevelData() == nil then
local nAllLevelType = self.BreakOutData_00:GetBreakoutLevelTypeNum()
for i = 1, nAllLevelType do
table.insert(self.tbGridsList, self.BreakOutData_00:GetLevelsByTab(i))