From b30b110fc4e5901fde2cd4e4e6444bbd32980d86 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 29 一月 2026 14:25:04 +0800
Subject: [PATCH] 423 【内政】命格系统-服务端(命格装备增加A814回包,类型27;)

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

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
index 9875d4c..d504b88 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'
 
@@ -419,7 +421,9 @@
     Def_mitGatherSoulCompound,# 聚魂合成
     Def_mitGatherSoulDecompose,# 聚魂分解
     Def_mitMainDropItemOP,# 主线装备操作 25
-) = range(1, 1 + 25)
+    Def_mitMGTuiyan,          # 命格推演 26
+    Def_mitMinggeEquip,       # 命格装备 27
+) = range(1, 1 + 27)
 
 #---写死的技能ID---
 
@@ -815,6 +819,7 @@
 GameFuncID_OSA_MainLevel = 45   # 开服关卡榜
 GameFuncID_OSA_HeroCall = 46    # 开服招募榜
 GameFuncID_OSA_Celebration = 47 # 开服庆典
+GameFuncID_Mingge = 54          # 命格
 
 # 以下为暂时无用的
 GameFuncID_Pet = -1             # 宠物,灵宠 6
@@ -829,8 +834,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 = (
@@ -838,6 +845,7 @@
 rptRune,            # 符印背包 255
 ) = range(256 - 2, 256)
 
+NeedRecordRPType = [IPY_GameWorld.rptItem, rptTreasure, rptHero, IPY_GameWorld.rptIdentify, rptMGTuiyan]
 
 #武器的手持形式
 (
@@ -880,13 +888,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 = (
@@ -1214,18 +1226,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亿,目前仅特殊转化物品会用到
@@ -1247,7 +1254,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
@@ -1264,15 +1271,23 @@
 
 LineupObjMax = 6 # 阵容最大上阵武将数
 
-# 阵容定义,主动进攻阵容只使用主阵容,功能可以有指定的阵容,如防守阵容、系统PK阵容等
-LineupList = (
-Lineup_Main, # 主阵容 1
-Lineup_2, # 废弃
-Lineup_ArenaDef, # 竞技场防守阵容 3
-) = range(1, 1 + 3)
+# 战斗功能预设定义
+BatPresetList = (
+BatPreset_Main, # 主线战斗 1
+BatPreset_ArenaDef, # 演武场防守 2
+) = range(1, 1 + 2)
 
-# 需要存储查看缓存的阵容ID列表,一般只存储主阵容及各功能所需的防守阵容
-NeedViewCacheLineupIDList = [Lineup_Main, Lineup_ArenaDef]
+# 需要缓存的战斗功能预设,一般只要主线+防守功能预设,主动攻击的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)
 
 # 宠物物品数据状态
 Def_PetStateList = (

--
Gitblit v1.8.0