From e8ad813399d377c11daa8c90b9ab1e3e4ee0fc2d Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Wed, 9 Aug 2023 16:50:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=89=93=E5=8D=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lua/app/common/local_data.lua | 2 -- lua/app/module/battle/controller/battle_base_controller.lua | 4 ---- lua/app/module/battle/helper/battle_snapshot_helper.lua | 4 +--- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/lua/app/common/local_data.lua b/lua/app/common/local_data.lua index 0ed517ac..20b88380 100644 --- a/lua/app/common/local_data.lua +++ b/lua/app/common/local_data.lua @@ -435,7 +435,6 @@ function LocalData:saveBattleSnapshot(snapshot) if EDITOR_MODE then Logger.logHighlight(json.encode(snapshot)) end - print("Snapshot: " .. json.encode(snapshot)) self:setString(LocalData:getRoleKey(LOCAL_DATA_KEY.BATTLE_SNAPSHOT), json.encode(snapshot)) LocalData:save() end @@ -445,7 +444,6 @@ function LocalData:getBattleSnapshot() if EDITOR_MODE then Logger.logHighlight(dealedSnapshot) end - print("Snapshot: " .. dealedSnapshot) return json.decode(dealedSnapshot) end diff --git a/lua/app/module/battle/controller/battle_base_controller.lua b/lua/app/module/battle/controller/battle_base_controller.lua index f414d36c..ee39b0c5 100644 --- a/lua/app/module/battle/controller/battle_base_controller.lua +++ b/lua/app/module/battle/controller/battle_base_controller.lua @@ -480,10 +480,6 @@ function BattleBaseController:init(params, snapshot) self.delayEffectTextList = {} self.delayEffectTextCount = 0 self.time = 0 - print("Snapshot: -----------------------------------------") - if snapshot then - print("Snapshot: " .. snapshot.battleType) - end if snapshot then -- 处理战斗快照 self:dealSnapshotBattleBaseInfo(snapshot) self.battleData:init(params, snapshot.battledataShopInfo) diff --git a/lua/app/module/battle/helper/battle_snapshot_helper.lua b/lua/app/module/battle/helper/battle_snapshot_helper.lua index d3cc49de..ef59f1e0 100644 --- a/lua/app/module/battle/helper/battle_snapshot_helper.lua +++ b/lua/app/module/battle/helper/battle_snapshot_helper.lua @@ -117,15 +117,13 @@ function BattleSnapshotHelper:snapshotBattleInfo(battleBaseController) end function BattleSnapshotHelper:dealSnapshotBattleBaseInfo(battleBaseController, snapInfo) - print("Snapshot: dealSnapshotBattleBaseInfo") if not snapInfo then return end - print("Snapshot: snapInfo") + if not NEED_SAVE_SNAPSHOT_BATTLE_TYPE[snapInfo.battleType] then return end - print("Snapshot: NEED_SAVE_SNAPSHOT_BATTLE_TYPE") local atkFormation = snapInfo.params.atkFormation snapInfo.params.atkFormation = {}