From 986730e2725816f2eb9ad6fd645c513de931aa41 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 21 一月 2026 11:52:04 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(命格技能七杀、皇灵、贪狼、司命、破军、天机;增加绝对闪避及抗性属性 81 82;格挡buff支持层级;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py |   51 ++++++++++++++++++++++++++++++++++-----------------
 1 files changed, 34 insertions(+), 17 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
index 3d10148..f3d62c9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
@@ -15,6 +15,8 @@
 #"""Version = 2013-10-30 15:20"""
 #---------------------------------------------------------------------
 
+import IPY_GameWorld
+
 # 游戏默认编码
 Def_Game_Character_Encoding = 'gbk'
 
@@ -433,7 +435,8 @@
 Def_BT_Tianzi,    # 天子考验伤害榜 2
 Def_BT_OSA_MainLevel,    # 开服关卡榜 3
 Def_BT_OSA_HeroCall,    # 开服招募榜 4
-) = range(0, 5) 
+Def_BT_Dingjunge,    # 定军阁过关榜 5
+) = range(0, 6) 
 
 ''' 跨服排行榜类型, 从 150 开始,最大条数在功能配置表 CrossBillboardSet 配置,没配默认100
 与本服榜单存储的是不一样的数据库表格,理论上类型可以和本服榜单类型重复,为了做下区分防误导,跨服榜单从 150 开始
@@ -447,7 +450,7 @@
 BillboardTypeAllList = BillboardTypeList + CrossBillboardTypeList
 
 BillboardNameDict = {Def_BT_MainLevel:"主线过关榜", Def_BT_Arena:"演武场积分周榜", Def_BT_Tianzi:"天子考验伤害榜", 
-                     Def_BT_OSA_MainLevel:"开服关卡榜", Def_BT_OSA_HeroCall:"开服招募榜"}
+                     Def_BT_OSA_MainLevel:"开服关卡榜", Def_BT_OSA_HeroCall:"开服招募榜", Def_BT_Dingjunge:"定军阁过关榜"}
 
 #仙盟榜单类型
 FamilyBillboardList = []
@@ -814,6 +817,7 @@
 GameFuncID_OSA_MainLevel = 45   # 开服关卡榜
 GameFuncID_OSA_HeroCall = 46    # 开服招募榜
 GameFuncID_OSA_Celebration = 47 # 开服庆典
+GameFuncID_Mingge = 54          # 命格
 
 # 以下为暂时无用的
 GameFuncID_Pet = -1             # 宠物,灵宠 6
@@ -828,8 +832,10 @@
 rptDogzEquip,       # 神兽装备背包 33
 rptGarbage,         # 垃圾分类背包 34
 rptHero,            # 武将英雄背包 35
+rptMGGuayu,         # 命格卦玉背包 36
+rptMGTuiyan,        # 命格推演背包 37
 rptMax,             # 最大背包类型数量,放在最后一个
-) = range(28, 28 + 9)  #C++定义的枚举到27
+) = range(28, 28 + 11)  #C++定义的枚举到27
 
 #虚拟背包类型, 从255递减
 Def_VPack_TypeList = (
@@ -837,6 +843,7 @@
 rptRune,            # 符印背包 255
 ) = range(256 - 2, 256)
 
+NeedRecordRPType = [IPY_GameWorld.rptItem, rptTreasure, rptHero, IPY_GameWorld.rptIdentify, rptMGTuiyan]
 
 #武器的手持形式
 (
@@ -879,13 +886,17 @@
                        Def_GameRecType_TalkCache, # 聊天缓存,频道 306
                        Def_GameRecType_PlayerOfflineUnprocessed, # 离线玩家待处理事件,playerID 307
                        Def_GameRecType_ArenaRecord, # 演武场玩家挑战记录,playerID 308
-                       ) = range(300, 1 + 308)
+                       Def_GameRecType_BatPreset, # 战斗方案预设额外存储信息,playerID 309
+                       ) = range(300, 1 + 309)
 #通用信息记录新 - 字典key配置,如果有配置,则可额外按对应记录Value值存储字典,方便快速取值,可配置Value编号 1~8,配空默认 Value1
 Def_GameRecValueKeyDict = {
                            Def_GameRecType_Xiangong:[1],
                            }
 #仅查看自己的记录
-Def_ViewGameRecSelfList = [Def_GameRecType_ArenaRecord]
+Def_ViewGameRecSelfList = [Def_GameRecType_ArenaRecord, Def_GameRecType_BatPreset]
+
+#UserData不使用json的记录类型
+UserDataNOJsonRecTypeList = []
 
 #通用信息记录类型
 Def_UniversalGameRecTypeList = (
@@ -1213,18 +1224,13 @@
 Def_IudetItemDecompound = 33  # 拆解返还物品列表 [装备ID,材料1ID,个数,是否绑定,材料2ID,个数,是否绑定,...]
 Def_IudetLiantaiItemID = 35  # 合成该莲台的所有莲台ID [itemID, itemID, ...]
 Def_IudetAddSkillID = 37  # 可添加的技能ID列表  [skillID, skillID, ...]
-Def_IudetLegendAttrIDShen = 51  # 物品传奇属性ID列表 - 神
-Def_IudetLegendAttrValueShen = 61  # 物品传奇属性值列表 - 神
-Def_IudetLegendAttrIDXian = 53  # 物品传奇属性ID列表 - 仙
-Def_IudetLegendAttrValueXian = 63  # 物品传奇属性值列表 - 仙
-Def_IudetLegendAttrIDJi = 55  # 物品传奇属性ID列表 - 极
-Def_IudetLegendAttrValueJi = 65  # 物品传奇属性值列表 - 极
 Def_IudetHeroTalentID = 71  # 英雄天赋ID列表
 Def_IudetHeroTalentIDLV = 73  # 英雄天赋ID等级列表
 Def_IudetHeroTalentWashLock = 75  # 英雄天赋洗炼锁定索引列表
 Def_IudetHeroTalentWashID = 77  # 英雄天赋洗炼随机ID列表
 Def_IudetHeroTalentIDAwakeRand = 79  # 英雄觉醒时随机天赋选项ID列表
 Def_IudetHeroLineup = 81 # 所在阵容信息列表 [阵容类型*10000+阵型类型*100+位置编号, ...]
+Def_IudetHeroEffPresetID = 83 # 卡牌有生效的预设ID [预设ID, ...]
 
 Def_IudetItemColor = 16  # 物品颜色,如果该值没有就取物品
 #Def_IudetItemCount = 18  # 物品个数,支持20亿,目前仅特殊转化物品会用到
@@ -1246,7 +1252,7 @@
 Def_IudetHeroBreakLV = 74 # 英雄突破等级
 Def_IudetHeroAwakeLV = 76 # 英雄觉醒等级
 Def_IudetHeroSkin = 78 # 英雄使用的皮肤索引
-Def_IudetHeroCardEffective = 80 # 卡牌加成是否生效的,每个武将仅有一张卡牌生效
+Def_IudetHeroCardEffective = 80 # 卡牌在主线预设中生效标识,每个武将在某一阵容预设中仅有一张卡牌生效,废弃,使用 Def_IudetHeroEffPresetID 代替
 
 # 200~300 宠物数据用
 Def_IudetPet_NPCID = 200  # npcID
@@ -1263,11 +1269,22 @@
 
 LineupObjMax = 6 # 阵容最大上阵武将数
 
-# 阵容定义
-LineupList = (
-Lineup_Main, # 主阵容 1
-Lineup_ArenaAtk, # 竞技场进攻阵容 2
-Lineup_ArenaDef, # 竞技场防守阵容 3
+# 战斗功能预设定义
+BatPresetList = (
+BatPreset_Main, # 主线战斗 1
+BatPreset_ArenaDef, # 演武场防守 2
+) = range(1, 1 + 2)
+
+# 需要缓存的战斗功能预设,一般只要主线+防守功能预设,主动攻击的PVE功能可以不用,如某个副本的主动攻击预设
+NeedCacheBatPresetList = [BatPreset_Main, BatPreset_ArenaDef]
+
+BatPresetName = {BatPreset_Main:"主线", BatPreset_ArenaDef:"演武场防守"}
+
+# 功能预设定义
+FuncPresetList = (
+FuncPreset_Battle,  # 全局战斗预设 1
+FuncPreset_Hero,    # 武将预设 2
+FuncPreset_Mingge,  # 命格预设 3
 ) = range(1, 1 + 3)
 
 # 宠物物品数据状态

--
Gitblit v1.8.0