From e6a2d6be0ba69afd50f95837f82a86e2cb71db70 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 07 八月 2025 18:48:19 +0800
Subject: [PATCH] 80 【常规】背包-服务端(A801通知优化,单物品总数量支持超20亿;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py |  144 +++++++++++++++++++----------------------------
 1 files changed, 59 insertions(+), 85 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 8b2fc9a..9e9784d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -184,8 +184,6 @@
                }
 
 # 属性ID对应0418刷新类型 {属性ID:[刷新同步类型, 是否支持超20亿的大数值], ...}
-# 卡牌项目玩家/主公属性仅为中间层属性,并非最终属性,最终属性体现在卡牌上,暂定全部前端自己算
-# 所以仅配置战斗场景需要同步的属性即可
 CDBRefresh_AttrIDDict = {
                          AttrID_MaxHP:[IPY_PlayerDefine.CDBPlayerRefresh_MaxHP, 1],
                          AttrID_HP:[IPY_PlayerDefine.CDBPlayerRefresh_HP, 1],
@@ -772,6 +770,8 @@
 Def_Skill_Effect_BoomSeedHurt = 804 # BUFF种子单层伤害
 Def_Skill_Effect_StoreBlood = 809 # 将期间受到的伤害总值,用于最后回血,不影响伤害
 Def_Skill_Effect_AttackReplace = 1009  #攻击计算,野外小怪伤害替换1010 (2018-03-07增加精英怪)
+Def_Skill_Effect_Cure = 1000  #治疗
+Def_Skill_Effect_Anger = 1001  #怒气增减偷
 Def_Skill_Effect_Attack = 1010  #攻击计算
 Def_Skill_Effect_LayerCnt = 1011 # BUFF层级数量 A值层数;B值:10位-是否非叠加属性,个位-层数处理方式0递增1递减;C值: 是否攻击减层
 Def_Skill_Effect_MasterBuff = 1012 # 主从技能(同步buff持续时间)
@@ -951,6 +951,20 @@
 
 #伤害类型
 (
+HurtType_Fail,              # 失败 - 如概率没有触发 0
+HurtType_Normal,            # 普通伤害 1
+HurtTYpe_Recovery,          # 回血 2
+HurtType_3,
+HurtType_4,
+HurtType_Parry,             # 格挡 5
+HurtType_IgnoreDef,         # 无视防御 6
+HurtType_SuperHit,          # 暴击 7
+HurtType_8,
+HurtType_Miss,              # 闪避 9
+) = range(10)
+
+#伤害类型
+(
 Def_HurtType_Normal,         # 普通伤害 1
 Def_HurtTYpe_Recovery,       # 回复 2
 Def_HurtType_BounceHurt,     # 反弹伤害 3
@@ -969,7 +983,7 @@
 Def_HurtType_ThumpHit,     # 重击 16
 Def_HurtType_Yinji,     # 印记 17
 Def_HurtType_Burn,     # 灼烧 18
-) = range(1, 19)
+) = range(1001, 1001 + 18)
 #Def_HurtType_SuckBlood,      # 吸血 
 
 (
@@ -1019,10 +1033,6 @@
 #流向记录变更最小金币值(小于该值的暂不记录, 仅限金币)
 Def_DRRecord_Min_Silver = 500000
 Def_LargeTrade_Silver = 1000 * 1000
-#登陆初始储物柜格子数
-Def_PackCnt_Fashion = 1
-#登陆初始武器时装格子数
-Def_PackCnt_WeaponCoat = 8
 #玩家脱离战斗状态时间(6秒)
 Def_PlayerLeaveBattleTick = 3000
 #玩家PK多杀间隔
@@ -1323,6 +1333,24 @@
 Def_Skill_HappenState_LuckyHit = 0x0004  # 必会心一击
 Def_Skill_HappenState_ThumpHit = 0x0008  # 必重击
 
+# 技能目标 - 瞄准范围
+(
+SkillTagAim_All, # 全部 0
+SkillTagAim_Relative, # 对位位置 1
+SkillTagAim_FrontRow, # 前排  2
+SkillTagAim_BackRow, # 后排  3
+SkillTagAim_Vertical, # 竖排/纵排 4
+SkillTagAim_Self, # 自己 5
+SkillTagAim_MainSkill, # 继承主技能目标 6
+) = range(7)
+
+# 技能目标 - 细分
+(
+SkillTagAffect_None, # 无  0
+SkillTagAffect_HPLowest, # 血量最低 1
+SkillTagAffect_HPHighest, # 血量最高 2
+SkillTagAffect_Death, # 死亡单位 3
+) = range(4)
 
 #技能施法目标
 Def_UseSkillAim_Type = 3
@@ -1831,10 +1859,9 @@
 Def_NstNull, Def_NstMoving, Def_NstDead, Def_NstAttack = range(4)
 
 #-------------------------------#副本相关#------------------------
-# 主线小怪
-Def_FBMapID_Main = 1
-# 主线Boss
-Def_FBMapID_MainBoss = 2
+
+Def_FBMapID_Main = 1 # 主线小怪
+Def_FBMapID_MainBoss = 2 # 主线Boss
 
 #创角新手村地图ID列表
 Def_CreatRoleMapIDList = [10000]
@@ -2282,6 +2309,10 @@
 DropOwnerType_Contend, # 争夺 8 第一个攻击的获得归属,击杀当前归属者的玩家成为新归属者
 DropOwnerType_RankHurtPlayer, # 个人伤血排行奖励归属 9 根据玩家个人伤血排行给奖励,伤血不重置
 ) = range(10)
+
+#阵营
+Def_FactionA = 1
+Def_FactionB = 2
 
 #------------------------------------------------
 #技能类型
@@ -3026,7 +3057,8 @@
 TurnBattleType_Normal, # 常规攻击
 TurnBattleType_Combo, # 连击
 TurnBattleType_AtkBack, # 反击
-) = range(3)
+TurnBattleType_Pursue , # 追击
+) = range(4)
 
 Def_PerTurnTick = 1000 # 每回合等同于常规tick时长
 
@@ -3334,13 +3366,7 @@
 Def_Player_Dict_Wallow_LV = "GameWallowLV_34"    #防沉迷等级
 Def_Player_Dict_Wallow_OfflineTime = "GameWallowOfflineTime_35"    #防沉迷离线累积时间
 Def_Player_Dict_Wallow_OnlineTime = "GameWallowOnlineTime_36"    #防沉迷在线累积时间
-Def_Player_Dict_CabinetCount_Pet = "CabinetCount_Pet_39"    #宠物收纳柜
-Def_Player_Dict_CabinetCount_WeaponCoat = "CabinetCount_WeaponCoat_40"    #武器收纳柜
-Def_Player_Dict_CabinetCount_DressCoat = "CabinetCount_DressCoat_41"     #时装收纳柜
-Def_Player_Dict_CabinetCount_Horse = "CabinetCount_Horse_42"    #马匹收纳柜
-Def_Player_Dict_PackCount_Item = "PackCount_Item_72"    #玩家物品背包格子数
-Def_Player_Dict_PackCount_Warehouse = "PackCount_Warehouse_73"    #仓库背包格子数
-Def_Player_Dict_PackCount_Hero = "PackCount_Hero"    #武将背包格子数
+Def_Player_Dict_PackBuyCnt = "PackBuyCnt_%s"    #背包已购买格子次数, 参数(背包类型)
 Def_Player_Dict_PlayerMapSignCnt = "PlayerMapSignCnt_75"    # 大地图标记数量
 Def_Player_Dict_PlayerBuyZhenQiCnt = "PlayerBuyZhenQiCnt_76"  # 购买真气次数
 Def_Player_Dict_PlayChangeLineID = "PlayChangeLineID"     # 玩家主动切换线路记录
@@ -3485,7 +3511,6 @@
 Def_PDict_FamilyWarDailyReward = "FamilyWarDailyReward"  # 王者仙盟每日俸禄领取状态
 Def_PDict_Family_Contribution = "FamilyContribution"  #战盟贡献度
 Def_PDict_HasChange_FamilyActiveToContribution = "HasChangeContribution"  #战盟活跃度已转化过贡献度
-Def_PDict_PackCount_FineSoul = "PackCount_FineSoul"    # 已购买精魄/符文背包格子数
 Def_PDict_KillPlayerAddActive = "KillPlayerAddActiveByDay"  # 杀人每日获得活跃度
 Def_PDict_LoginDayCnt = "PLoginDayCnt"  # 累计登陆天数
 Def_PDict_LoginDayAward = "PLoginDayAward"  # 累计登陆领取情况
@@ -3552,9 +3577,6 @@
 Def_PDict_SplitExpLVCnt = "SplitExpLVCnt_%s"  # 单位等级经验已拆分过的等级数, 参数为实际等级
 
 Def_PDict_IsAddReviveTired = "IsAddReviveTired"  # 死亡是否增加复活疲劳
-
-Def_PDict_ComposeMustSuccess = "ComposeMustSuccess_%s"  # 前X次合成必定成功,参数(合成归组)
-Def_PDict_FirstSuccMakeJobItem = "FirstSuccMakeJobItem_%s"  # 首次合成成功给本职业物品记录,参数为(合成ID)
 
 Def_PDict_DownloadAwardState = "DownloadAwardState"  # 分包包下载奖励状态 0-未领 >0-已领奖励编号
 Def_PDict_DownloadPatchAward = "DownloadPatchAward"  # 更新包下载奖励状态 0-未领 >0-已领奖励编号
@@ -4303,53 +4325,14 @@
 #武将
 Def_PDict_HeroSkin = "HeroSkin_%s" # 武将皮肤解锁状态,按皮肤索引二进制存储,参数(武将ID)
 Def_PDict_HeroBook = "HeroBook_%s" # 武将图鉴激活等级,参数(武将ID) cccbbba a-初始激活状态1-英雄激活,2-初始图鉴激活; bbb-存星级图鉴激活等级;ccc-存突破图鉴激活等级
+Def_PDict_HeroAwakeRebirthCnt = "HeroAwakeRebirthCnt" # 已觉醒过的武将今日已重生次数,共享次数
 
 #主线
 Def_PDict_UnXiantaoCntExp = "UnXiantaoCntExp" # 累计未结算经验的战锤数
-Def_PDict_UnXiantaoCntEquip = "UnXiantaoCntEquip" # 累计未结算掉落的战锤数
+Def_PDict_UnXiantaoCntEquip = "UnXiantaoCntEquip" # 累计未结算装备掉落的战锤数
+Def_PDict_UnXiantaoCntBooty = "UnXiantaoCntBooty_%s" # 累计未结算战利品掉落的战锤数,参数(itemID)
 Def_PDict_BootyDropToday = "BootyDropToday_%s" # 今日已累计掉落战利品数量,参数(itemID)
 
-#-------------------------------------------------------------------------------
-#可以从07 41封包购买的背包类型,和对应字典{背包类型:[字典key, 默认格子数]}
-
-#字典值列表枚举,废弃默认格子数枚举,改为读配置
-[
-Def_PlayerPackDict_Index_Key,      # 字典可以
-] = range(0, 1)
-
-Def_Type_CanBuyPack_PlayerDict = {
-                                  #IPY_GameWorld.rptPetCabinetPet:[
-                                  #     Def_Player_Dict_CabinetCount_Pet, 
-                                  #     Def_PackCnt_Fashion],
-                                      
-                                  #IPY_GameWorld.rptCabinetWeaponCoat:[
-                                  #     Def_Player_Dict_CabinetCount_WeaponCoat, 
-                                  #     Def_PackCnt_WeaponCoat],
-                                      
-                                  #IPY_GameWorld.rptCabinetDressCoat:[
-                                  #     Def_Player_Dict_CabinetCount_DressCoat, 
-                                  #     Def_PackCnt_Fashion],
-                                      
-                                  #IPY_GameWorld.rptCabinetHorse:[
-                                  #     Def_Player_Dict_CabinetCount_Horse, 
-                                  #     Def_PackCnt_Fashion],
-                                      
-                                  IPY_GameWorld.rptItem:[
-                                       Def_Player_Dict_PackCount_Item, 
-                                       0],
-                                      
-                                  IPY_GameWorld.rptWarehouse:[
-                                       Def_Player_Dict_PackCount_Warehouse, 
-                                       0],
-                                      
-                                  ShareDefine.rptHero:[
-                                       Def_Player_Dict_PackCount_Hero, 
-                                       0],
-                                      
-                                  #IPY_GameWorld.rptFineSoulSlot:[
-                                  #     Def_PDict_PackCount_FineSoul, 
-                                  #     Def_PlayerFirstLoginOpenFineSoulSlot],
-                                }
 #-------------------------------------------------------------------------------
 
 #物品效果(ID或指定类型)对应的属性计算信息 {效果(ID/指定类型):[[属性索引, ...], 是否基础属性,(非)线性]}
@@ -5155,6 +5138,16 @@
 ) = range(27)
 
 
+# 回合卡牌
+(
+Def_SkillFuncType_Common, #0为通用技能
+Def_SkillFuncType_TurnNormaSkill,  #1 普攻技能
+Def_SkillFuncType_AngerSkill,  #2 怒气技能
+Def_SkillFuncType_PotentialSkill,  #3 潜能技能
+Def_SkillFuncType_AtkbackSkill,  #4 反击技能
+) = range(5)
+
+# MMO项目 - 先保留,重新定义从1000开始,后续可陆续删除
 (Def_SkillFuncType_Common, #0为通用技能
 Def_SkillFuncType_FbSkill, #1为法宝功能获得的主动技能
 Def_SkillFuncType_FbPassiveSkill, #2为法宝功能获得的被动技能
@@ -5178,8 +5171,7 @@
 Def_SkillFuncType_ShentongSkill,     #20 神通技能
 Def_SkillFuncType_ElfSkill,     #21 精怪技能
 Def_SkillFuncType_GatherTheSoul,     #22 聚魂技能
-Def_SkillFuncType_TurnNormaSkill,  #23 回合普攻技能
-) = range(24)
+) = range(1000, 1000 + 23)
 
 # 受技能效果完全影响的怪, 对应 Def_BattleRelationType_CommNoBoss
 Def_SkillAttack_NPCIsBoss = [ Def_NPCType_Ogre_Normal     ,  #平凡小怪 0    # c++ 定义为普通NPC视野刷新
@@ -5206,24 +5198,6 @@
 ExpRateLimitType_Recover, # 资源找回
 ExpRateLimitType_Sweep, # 扫荡
 ) = range(2)
-
-# 技能功能类对应战斗力模块
-Def_SkillFuncType_MFPType={
-                           Def_SkillFuncType_FbSkill:ShareDefine.Def_MFPType_MagicWeapon1,
-                           Def_SkillFuncType_FbPassiveSkill:ShareDefine.Def_MFPType_MagicWeapon2,
-                           Def_SkillFuncType_FbSPSkill:ShareDefine.Def_MFPType_MagicWeapon1,
-                           Def_SkillFuncType_GiftSkill:ShareDefine.Def_MFPType_Role,
-                           
-                           Def_SkillFuncType_HorseSkill:ShareDefine.Def_MFPType_Horse,
-                           Def_SkillFuncType_PetSkill:ShareDefine.Def_MFPType_Pet,
-                           Def_SkillFuncType_PetOwnerSkill:ShareDefine.Def_MFPType_Pet,
-                           Def_SkillFuncType_GWSkill:ShareDefine.Def_MFPType_Prestige,
-                           Def_SkillFuncType_SuiteSkill:ShareDefine.Def_MFPType_Equip,
-                           Def_SkillFuncType_TitleSkill:ShareDefine.Def_MFPType_Dienstgrad,
-                           Def_SkillFuncType_LianTiSkill:ShareDefine.Def_MFPType_LianTi,
-                           Def_SkillFuncType_ShentongSkill:ShareDefine.Def_MFPType_Shentong,
-                           }
-
 
 # 投资理财类型,和前端对应,从7开始
 InvestTypeList = (

--
Gitblit v1.8.0