From 750ff5ee6204bb088713b0ce10d53d05f22679e0 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 16 一月 2026 19:32:27 +0800
Subject: [PATCH] 438 【方案】方案预设-服务端

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py |   35 ++++++++++++++++++++++++-----------
 1 files changed, 24 insertions(+), 11 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
index 397f6dc..f3d62c9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
@@ -886,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 = (
@@ -1226,6 +1230,7 @@
 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 +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
@@ -1264,15 +1269,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