From 6665e7156877bd036cb68865f79d4de155a2c840 Mon Sep 17 00:00:00 2001
From: yyl <yyl>
Date: 星期五, 09 一月 2026 17:49:29 +0800
Subject: [PATCH] 125 战斗 删除旧的战报解包信息 战斗飘字代码结构小优化
---
Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs | 32 --------------------------------
Main/System/Battle/Skill/SkillBase.cs | 7 +++++--
2 files changed, 5 insertions(+), 34 deletions(-)
diff --git a/Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs b/Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs
index f3ee457..cf669d8 100644
--- a/Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs
+++ b/Main/Core/NetworkPackage/DTCFile/ServerPack/HB4_FightDefine/DTCB430_tagSCTurnFightReport.cs
@@ -143,38 +143,6 @@
vPackList = AnalysisPackQueueAndDistribute(guid, vPackList);
-#if UNITY_EDITOR
- if (Launch.Instance.isOpenSkillLogFile)
- {
- string packDetail = "澶勭悊鍓� : " + originPack + "\n";
- packDetail += "AnalysisPackQueueAndDistribute 澶勭悊鍚庣殑鍖呭垪琛�:\n";
- packDetail += PrintPackListDetail(vPackList, 0, guid);
-
- // 鍒嗘鎵撳嵃锛岄伩鍏嶆秷鎭鎴柇
- int chunkSize = 15000; // Unity鏃ュ織鍗曟潯娑堟伅鏈�澶ч暱搴︾害16000瀛楃
- if (packDetail.Length > chunkSize)
- {
- int totalChunks = (packDetail.Length + chunkSize - 1) / chunkSize;
- for (int i = 0; i < totalChunks; i++)
- {
- int startIndex = i * chunkSize;
- int length = Mathf.Min(chunkSize, packDetail.Length - startIndex);
- string chunk = packDetail.Substring(startIndex, length);
- Debug.LogError($"[Part {i + 1}/{totalChunks}]\n{chunk}");
- }
- }
- else
- {
- Debug.LogError(packDetail);
- }
-
- // 鎴栬�呭啓鍏ユ枃浠�
- string filePath = Application.dataPath + "/../BattleReport/PackageAnalysis_" + DateTime.Now.ToString("yyyyMMdd_HHmmss") + ".txt";
- System.IO.Directory.CreateDirectory(System.IO.Path.GetDirectoryName(filePath));
- System.IO.File.WriteAllText(filePath, packDetail);
- Debug.LogError("鍖呭垎鏋愮粨鏋滃凡淇濆瓨鍒�: " + filePath);
- }
-#endif
#region Start Print Pack List Detail
if (Launch.Instance.isOpenSkillLogFile)
diff --git a/Main/System/Battle/Skill/SkillBase.cs b/Main/System/Battle/Skill/SkillBase.cs
index bfc1004..c8592c4 100644
--- a/Main/System/Battle/Skill/SkillBase.cs
+++ b/Main/System/Battle/Skill/SkillBase.cs
@@ -720,6 +720,11 @@
}
}
+ HandleHint(_hitIndex, hitList);
+ }
+
+ protected void HandleHint(int _hitIndex, List<HB427_tagSCUseSkill.tagSCUseSkillHurt> hitList)
+ {
if (0 == _hitIndex)
{
bool needhint = false;
@@ -786,8 +791,6 @@
}
}
}
-
-
}
// 澶勭悊鍗曚釜鐩爣琚懡涓�:搴旂敤浼ゅ鍜屾柦娉曡�呮晥鏋�
--
Gitblit v1.8.0