From 9f5db2e92b93dcbe7c5d53606d62c8f04aef3c19 Mon Sep 17 00:00:00 2001
From: lcy <1459594991@qq.com>
Date: 星期三, 18 三月 2026 23:20:18 +0800
Subject: [PATCH] 533 开服冲榜-客户端 开服冲榜的将星云集、百炼成军、红袖添香、命定乾坤和限时冲刺的武将冲刺、古宝冲刺、元宝冲刺添加特权标识
---
Main/System/Battle/BattleConst.cs | 219 ++++++++++++++++++++++++++++++++++++++----------------
1 files changed, 152 insertions(+), 67 deletions(-)
diff --git a/Main/System/Battle/BattleConst.cs b/Main/System/Battle/BattleConst.cs
index 266ac7d..a9d3552 100644
--- a/Main/System/Battle/BattleConst.cs
+++ b/Main/System/Battle/BattleConst.cs
@@ -1,9 +1,10 @@
-
using System;
using System.Collections.Generic;
public static class BattleConst
{
+ #region 鎴樻枟绐楀彛閰嶇疆
+
public static List<Type> BattleWindows = new List<Type>()
{
typeof(BattleWin),
@@ -11,23 +12,80 @@
typeof(ArenaBattleWin),
typeof(BoneFieldBattleWin),
typeof(TianziBillboradBattleWin),
+ typeof(WarlordPavilionBattleWin),
+ typeof(PreviewBattleWin),
+ typeof(QYBattleWin),
};
+
+ // 鎴樺満鍚嶇О
+ public const string StoryBattleField = "StoryBattleField";
+ public const string StoryBossBattleField = "StoryBossBattleField";
+ public const string ArenaBattleField = "ArenaBattleField";
+ public const string BoneBattleField = "BoneBattleField";
+ public const string TianziBillboradBattleField = "TianziBillboradBattleField";
+ public const string WarlordPavilionBattleField = "WarlordPavilionBattleField";
+ public const string PriviewBattleField = "PriviewBattleField"; //棰勮鎴樻枟
+ public const string QYBattleField = "QYBattleField";
public static Dictionary<string, string> battleNameToWinName = new Dictionary<string, string>()
{
- { "StoryBattleField", "BattleWin" },
- { "StoryBossBattleField", "StoryBossBattleWin" },
- { "ArenaBattleField", "ArenaBattleWin" },
- { "BoneBattleField", "BoneFieldBattleWin" },
- { "TianziBillboradBattleField", "TianziBillboradBattleWin" },
+ { StoryBattleField, "BattleWin" },
+ { StoryBossBattleField, "StoryBossBattleWin" },
+ { ArenaBattleField, "ArenaBattleWin" },
+ { BoneBattleField, "BoneFieldBattleWin" },
+ { TianziBillboradBattleField, "TianziBillboradBattleWin" },
+ { WarlordPavilionBattleField, "WarlordPavilionBattleWin" },
+ { PriviewBattleField, "PreviewBattleWin" },
+ { QYBattleField, "QYBattleWin" },
};
+ // 绱㈠紩閰嶇疆鐢�
+ public static Dictionary<string, int> FieldNameToIndex = new Dictionary<string, int>()
+ {
+ { StoryBossBattleField, 1 },
+ { ArenaBattleField, 2 },
+ { BoneBattleField, 3},
+ { TianziBillboradBattleField, 4 },
+ { WarlordPavilionBattleField, 5 },
+ { PriviewBattleField, 6 },
+ { QYBattleField, 7 },
+ };
+
+ //鍜� CreateBattleField 閲岀殑瀵瑰簲
+ public static Dictionary<int, string> mapIDToBattleNameDic = new Dictionary<int, string>()
+ {
+ {1, StoryBattleField},
+ {2, StoryBossBattleField},
+ {3, ArenaBattleField},
+ {30010, BoneBattleField},
+ {30020, TianziBillboradBattleField},
+ {30030, WarlordPavilionBattleField},
+ {30000, PriviewBattleField},
+ {32000, QYBattleField},
+ };
+
+ //pvp鎴樻枟鐨勬垬鍦猴紝涓嶅湪杩欎釜鍒楄〃鐨勮涓簆ve绫诲瀷鐨勬垬鍦�
+ public static List<string> pvpBattleNameDic = new List<string>()
+ {
+ ArenaBattleField,
+ QYBattleField,
+ };
+
+
+ #endregion
+
+ #region 鎴樻枟鍩虹閰嶇疆
+
public const int BattleStartEffectID = 1001; // Example effect ID for battle start
public const int skillMotionFps = 30;
public const int BattlePointItemID = 3;//鎴橀敜ID
+
+ #endregion
+ #region 鎴樻枟缁熻绫诲瀷
+
public const int BattleTotalDamageType = 100001; // 鎬讳激瀹崇被鍨婭D
public const int BattleTotalRecoverType = 100002; // 鎬绘不鐤楃被鍨婭D
@@ -40,6 +98,16 @@
public const int BattleStun = 100006; // 鍑绘檿
+ public const int BreakArmor = 100007; // 璐┛
+
+ public const int Parry = 100008; // 鎷涙灦
+
+ public const int CompletelyDodge = 100009;// 缁濆闂伩
+
+ #endregion
+
+ #region 鎴樻枟灞傜骇鎺掑簭
+
// 1000~10000涔嬮棿鐨勬垬鏂楀眰绾�
// 闇�瑕佽�冭檻鏍规嵁UI 鐗规晥 鎴樻枟瑙掕壊涓夋柟鐨勫眰绾у叧绯�
// 纭珛鍩烘湰鐨勫眰绾ц寖鍥� 鍚庡線涓婄疮鍔�
@@ -60,6 +128,33 @@
// 鐜板湪鏈熸湜 钂欑増涓嶈鍘嬩綇UI 鏇存敼绛栫暐
// 閲婃斁鎶�鑳借嫳闆�>鍙楀奖鍝嶈嫳闆�>姝e父UI>榛戣壊钂欑増>鏈彈褰卞搷鑻遍泟>搴曞浘
+
+ // ----------------------2025 12/30鏇存柊 start
+ // BattleBackground = -10
+ // BattleWinLayer 0
+
+ // {
+ // BehindHeroUI = 1 Offset -2
+ // BehindHeroEffect = 2 -1
+ // UnactiveHero = BattleBackground + BattleHero = 3 0
+ // FrontUIEffect = 4 1
+ // BattleHeroUI = 5 2
+ // FrontHeroEffect = 6 3
+ // }
+
+ // SkillMask = 10
+
+ // {
+ // BehindHeroUI = 1 Offset -2
+ // BehindHeroEffect = 2 -1
+ // ActiveHero = SkillMask + BattleHero = 3 0
+ // FrontUIEffect = 4 1
+ // BattleHeroUI = 5 2
+ // FrontHeroEffect = 6 3
+ // }
+
+ // BattleStartEffect = 30
+ // ----------------------2025 12/30鏇存柊 end
//閲婃斁鎶�鑳借嫳闆�>鍙楀奖鍝嶈嫳闆�>[姝e父UI]>榛戣壊钂欑増>鏈彈褰卞搷鑻遍泟>搴曞浘
@@ -96,8 +191,24 @@
}
}
- // 閲婃斁鎶�鑳借嫳闆�>鍙楀奖鍝嶈嫳闆�>姝e父UI>榛戣壊钂欑増>鏈彈褰卞搷鑻遍泟>[搴曞浘]
- public static int BattleBackgroundOrder
+
+ public static int BattleBehindCharUIOffset = 1; //瑙掕壊鍚庨潰鐨刄I 涓昏鏄槾褰�(澶勭悊)
+
+ public static int BattleBehindHeroEffect = 2; //瑙掕壊韬悗鐨勭壒鏁�(澶勭悊)
+
+ public static int BattleHeroOffset = 3; //瑙掕壊鏈韩鐨勫眰绾�(涓嶉渶澶勭悊)
+
+
+ public static int BattleActiveHeroOffset = 4;
+
+ public static int BattleFrontHeroBehindUIEffect = 5; //瑙掕壊韬墠鐨� 浣嗘槸UI鍚庨潰鐗规晥
+
+ public static int BattleFrontCharUIOffset = 6; //瑙掕壊韬墠鐨刄I
+
+ public static int BattleFrontHeroEffect = 7; //瑙掕壊韬墠鐨勭壒鏁�
+
+
+ public static int SkillMaskOrder
{
get
{
@@ -105,84 +216,37 @@
}
}
- // 闈炴縺娲昏嫳闆勭殑鍚庣壒鏁�
- public static int UnactiveHeroBackSortingOrder
+
+ // 閲婃斁鎶�鑳借嫳闆�>鍙楀奖鍝嶈嫳闆�>姝e父UI>榛戣壊钂欑増>鏈彈褰卞搷鑻遍泟>[搴曞浘]
+ public static int BattleBackgroundOrder
{
get
{
- return BattleBackgroundOrder + 1;
+ return BattleWinSortingOrder - 30;
}
}
-
- //閲婃斁鎶�鑳借嫳闆�>鍙楀奖鍝嶈嫳闆�>姝e父UI>榛戣壊钂欑増>[鏈彈褰卞搷鑻遍泟]>搴曞浘
- // 闈炴縺娲昏嫳闆勭殑灞傜骇
- public static int UnactiveHeroSortingOrder
+ public static int BattleStartEffectOrder
{
get
{
- return UnactiveHeroBackSortingOrder + 1;
+ return SkillMaskOrder + BattleFrontHeroEffect + 5;
}
}
- // 闈炴縺娲昏嫳闆勭殑鍓嶇壒鏁�
- public static int UnactiveHeroFrontSortingOrder
+ public static int NotFolowTipsOrder
{
get
{
- return UnactiveHeroSortingOrder + 1;
+ return SkillMaskOrder + BattleFrontHeroEffect + 1;
}
}
- //閲婃斁鎶�鑳借嫳闆�>鍙楀奖鍝嶈嫳闆�>姝e父UI>[榛戣壊钂欑増]>鏈彈褰卞搷鑻遍泟>搴曞浘
- // 榛戣壊钂欑増鐨勫眰绾�
- public static int BlockerSortingOrder
- {
- get
- {
- return UnactiveHeroFrontSortingOrder + 1;
- }
- }
+
+ #endregion
- // 婵�娲昏嫳闆勭殑鍚庣壒鏁�
- public static int ActiveHeroBackSortingOrder
- {
- get
- {
- return BlockerSortingOrder + 1;
- }
- }
-
- //閲婃斁鎶�鑳借嫳闆�>[鍙楀奖鍝嶈嫳闆刔>姝e父UI>榛戣壊钂欑増>鏈彈褰卞搷鑻遍泟>搴曞浘
- // 婵�娲昏嫳闆勭殑灞傜骇
- public static int ActiveHeroSortingOrder
- {
- get
- {
- return ActiveHeroBackSortingOrder + 1;
- }
- }
-
- //[閲婃斁鎶�鑳借嫳闆刔>鍙楀奖鍝嶈嫳闆�>姝e父UI>榛戣壊钂欑増>鏈彈褰卞搷鑻遍泟>搴曞浘
- // 閲婃斁鎶�鑳介挓鐨勮嫳闆勫眰绾�
- public static int ActiveHeroActionSortingOrder
- {
- get
- {
- return ActiveHeroSortingOrder + 1;
- }
- }
-
- // 婵�娲昏嫳闆勭殑鍓嶇壒鏁�
- public static int ActiveHeroFrontSortingOrder
- {
- get
- {
- return ActiveHeroActionSortingOrder + 1;
- }
- }
-
-
+ #region Buff闄愬埗缁�
+
public const int HardControlGroup = 1;
public const int SoftControlGroup = 2;
@@ -202,4 +266,25 @@
PassiveSkillLimitGroup,
};
+ public const int ShieldBuffAttackType = 1003;//鎶ょ浘鍚告敹浼ゅ绫诲瀷ID
+
+ #endregion
+
+ #region 鐗规晥ID
+
+ public const int BlockEffectID = 19999; // 鏍兼尅鐗规晥ID
+
+ public const int RebornEffectID = 10025; // 澶嶆椿鐗规晥ID
+
+ public const int BreakArmorEffectID = 10026; // 璐┛鐗规晥ID
+
+ public const int ParryEffectID = 10027; // 鎷涙灦鐗规晥ID
+
+ #endregion
+
+ #region 闊虫晥ID
+
+ public const int DodgeSoundID = 5999999; // 闂伩闊虫晥ID
+
+ #endregion
}
\ No newline at end of file
--
Gitblit v1.8.0