Hotfix - 2.0.1.145
EN: 2.0.1.145 CN: 2.0.1.144 JP: 2.0.1.147 KR: 2.0.1.152
This commit is contained in:
@@ -772,6 +772,12 @@ function PlayerBaseData:GoHomeFromCurModule()
|
||||
EventManager.Add("EnterModule", self, OnEventEnterModule)
|
||||
NovaAPI.EnterModule("MainMenuModuleScene", true)
|
||||
return
|
||||
elseif PanelManager.CheckPanelOpen(PanelId.SoldierSandtable) == true then
|
||||
if PlayerData.SoldierData:GetCurLevelData() ~= nil then
|
||||
PlayerData.SoldierData:GetCurLevelData():UnloadSandtableScene()
|
||||
end
|
||||
PanelManager.Home()
|
||||
return
|
||||
end
|
||||
PanelManager.Home()
|
||||
end
|
||||
|
||||
@@ -24,6 +24,7 @@ function PlayerDormData:Init()
|
||||
self.nLastLikeInfoTime = 0
|
||||
self.nEnterRoomSceneId = nil
|
||||
self.bEnterIsGuide = false
|
||||
self.bCurEnterIsGuide = false
|
||||
printLog("dorm init")
|
||||
EventManager.Add(EventId.IsNewDay, self, self.OnEvent_NewDay)
|
||||
self.nHonorMaxLevel = 0
|
||||
@@ -68,6 +69,7 @@ end
|
||||
function PlayerDormData:GetGuideState()
|
||||
local ret = self.bEnterIsGuide == true
|
||||
self.bEnterIsGuide = false
|
||||
self.bCurEnterIsGuide = ret
|
||||
return ret
|
||||
end
|
||||
function PlayerDormData:GetRoomInfo(callback)
|
||||
@@ -918,6 +920,7 @@ function PlayerDormData:CacheDormHotInfo(mapData)
|
||||
if mapData ~= nil then
|
||||
self.cachedCollection = mapData.CollectionValue
|
||||
PlayerData.Guide:SetGuideNewbie(mapData.Newbies)
|
||||
self.bEnterIsGuide = not PlayerData.Guide:CheckGuideFinishById(521)
|
||||
end
|
||||
local sKey = "PlayerDormNewRoom"
|
||||
local sData = LocalData.GetPlayerLocalData(sKey)
|
||||
|
||||
@@ -215,6 +215,7 @@ function PlayerInfinityTowerData:RefreshCharDamageData(tbCharId)
|
||||
local actorInfo = {}
|
||||
actorInfo.nCharId = tbCharId[i]
|
||||
actorInfo.nDamage = damage
|
||||
actorInfo.nSkinId = PlayerData.Build:GetBattleCharSkinId(tbCharId[i])
|
||||
table.insert(self.tbCharDamage, actorInfo)
|
||||
end
|
||||
CS.AdventureModuleHelper.ClearCharacterDamageRecord(true)
|
||||
|
||||
@@ -827,8 +827,8 @@ function PlayerQuestData:ReceiveDailyActiveReward(callBack)
|
||||
self.tbDailyActives[v].bReward = true
|
||||
local mapCfg = ConfigTable.GetData("DailyQuestActive", v)
|
||||
if mapCfg ~= nil then
|
||||
for i = 1, 2 do
|
||||
if mapCfg["ItemTid" .. i] ~= 0 then
|
||||
for i = 1, 3 do
|
||||
if mapCfg["ItemTid" .. i] ~= nil and mapCfg["ItemTid" .. i] ~= 0 then
|
||||
if tbReward[mapCfg["ItemTid" .. i]] == nil then
|
||||
tbReward[mapCfg["ItemTid" .. i]] = 0
|
||||
end
|
||||
@@ -1741,7 +1741,9 @@ function PlayerQuestData:RequestGuideMissionInfo(callback)
|
||||
local tbDoneChapter = {}
|
||||
if mapDataCb.Chapters ~= nil then
|
||||
for _, mapChapterData in pairs(mapDataCb.Chapters) do
|
||||
PlayerData.GuideMission:CacheServerUnlockTime(mapChapterData.Id, mapChapterData.UnlockTime)
|
||||
if PlayerData.GuideMission ~= nil then
|
||||
PlayerData.GuideMission:CacheServerUnlockTime(mapChapterData.Id, mapChapterData.UnlockTime)
|
||||
end
|
||||
if mapChapterData.Quests ~= nil and mapChapterData.Quests.List ~= nil then
|
||||
for _, mapQuestData in pairs(mapChapterData.Quests.List) do
|
||||
self:OnQuestProgressChanged(mapQuestData)
|
||||
|
||||
@@ -347,6 +347,32 @@ end
|
||||
function PlayerSoldierData:CheckPartnerRecommendState(nPartnerType)
|
||||
return self.recommendData:CheckPartnerRecommendState(nPartnerType)
|
||||
end
|
||||
function PlayerSoldierData:OpenRecommendSquare()
|
||||
local bHasUrl, sUrl = UTILS.GetToolBoxUrl()
|
||||
if not (bHasUrl and sUrl) or sUrl == "" then
|
||||
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("Function_NotAvailable"))
|
||||
return
|
||||
end
|
||||
sUrl = sUrl .. "/auto-chess"
|
||||
local bSuccess, bOpened = pcall(function()
|
||||
if NovaAPI.IsEditorPlatform() then
|
||||
NovaAPI.OpenURL(sUrl)
|
||||
return true
|
||||
end
|
||||
local SDKManager = CS.SDKManager.Instance
|
||||
if not SDKManager:IsSDKInit() then
|
||||
return false
|
||||
end
|
||||
SDKManager:ShowWebView(false, "", sUrl, 1, 0, true)
|
||||
return true
|
||||
end)
|
||||
if not bSuccess then
|
||||
printError(bOpened)
|
||||
end
|
||||
if not bSuccess or not bOpened then
|
||||
EventManager.Hit(EventId.OpenMessageBox, ConfigTable.GetUIText("Function_NotAvailable"))
|
||||
end
|
||||
end
|
||||
function PlayerSoldierData:GetTechActiveClientEffect()
|
||||
if self.nCurSelectSeasonId == 0 then
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user