From ea1b7e5229ebbae2340b5616c796f2a2b00a123f Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期二, 28 五月 2019 10:54:34 +0800 Subject: [PATCH] 6805 【后端】【2.0】副本前端化(代码优化) --- ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py | 114 +++++++++++++++++++++++++++++++++++--------------------- 1 files changed, 71 insertions(+), 43 deletions(-) diff --git a/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py b/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py index 678b0f6..0ed47d8 100644 --- a/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py +++ b/ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py @@ -190,7 +190,7 @@ Def_Notify_WorldKey_RedPacketOutput = 'RedPacketOutput' # 红包产出信息 Def_Notify_WorldKey_HurtLog = 'HurtLog' # 战斗伤害日志 - +Def_Notify_WorldKey_FairyDomainLimit = "FairyDomainLimit" # 缥缈仙域限制事件 #运营活动表名定义 OperationActionName_ExpRate = "ActExpRate" # 多倍经验活动 OperationActionName_CostRebate = "ActCostRebate" # 消费返利活动 @@ -306,53 +306,54 @@ Def_SkillID_AutoTruck = 62220 # 自动运镖buff #---写死的物品属性效果ID--- +Def_Effect_FreePoint = 200 # 自由灵根,注意此属性ID不能在刷属性中加,只能在某个功能中一次性处理 Def_Effect_Metal = 201 # 金 Def_Effect_Wood = 202 # 木 Def_Effect_Water = 203 # 水 Def_Effect_Fire = 204 # 火 Def_Effect_Earth = 205 # 土 #增加%d力量 -Def_Effect_STR = 2 #1006 +Def_Effect_STR = 2 #增加%d真元 -Def_Effect_PNE = 5 #1009 +Def_Effect_PNE = 5 #增加%d筋骨 -Def_Effect_PHY = 3 #1007 +Def_Effect_PHY = 3 #增加%d体魄 -Def_Effect_CON = 4 #1008 +Def_Effect_CON = 4 #增加HP -Def_Effect_MaxHP = 6 #20000 +Def_Effect_MaxHP = 6 #增加%d伤害值(物理和魔法的最大/小),只用到a值 -Def_Effect_Atk = 7 #1087 +Def_Effect_Atk = 7 #增加%d防御值 -Def_Effect_Def = 8 #1004 +Def_Effect_Def = 8 #命中(A值为具体值) -Def_Effect_Hit = 9 #20012 +Def_Effect_Hit = 9 #闪避(A值为具体值) -Def_Effect_Miss = 10 #20014 +Def_Effect_Miss = 10 #攻击速度(A值为具体值) -Def_Effect_AtkSpeed = 11 #20019 +Def_Effect_AtkSpeed = 11 #暴击伤害(a值为固定值,直接加上) -Def_Effect_SuperHit = 13 #20022 -#暴击伤害减免(暴击伤害抗性) A值为万分率 +Def_Effect_SuperHit = 13 +#暴击伤害减少固定值 Def_Effect_SuperHitReduce = 14 #暴击率(A值为万分率, 永恒为具体数值) -Def_Effect_SuperHitRate = 12 #20013 -# 幸运一击几率, a值为万分率 +Def_Effect_SuperHitRate = 12 +# 会心一击概率 Def_Effect_LuckyHitRate = 15 -# 幸运一击倍数(a值为万分率,直接加上) -Def_Effect_LuckyHit = 16 #20028 +# 会心一击固定伤害 +Def_Effect_LuckyHit = 16 # 会心一击抗性(抗概率), a值为万分率 Def_Effect_LuckyHitRateReduce = 17 # 技能伤害加成 (用作伤害加成)其中a值为增加的万分率 -Def_Effect_SkillAtkRate = 18 #20032 -# 伤害加成, 技能百分比外层 -Def_Effect_DamagePer = 19 -# 伤害吸收(A值为具体值) -Def_Effect_DamReducePer = 20 +Def_Effect_SkillAtkRate = 18 +# PVP固定伤害 +Def_Effect_DamagePVP = 19 +# PVP固定减伤 +Def_Effect_DamagePVPReduce = 20 #生命回复固定值(A值固定值) Def_Effect_HPRestore = 21 #反伤百分比(A值固定值) -Def_Effect_DamBackPer = 22 #2840 +Def_Effect_DamBackPer = 22 #移动速度(A值固定值) Def_Effect_Speed = 23 #宠物攻击(A值固定值) @@ -360,11 +361,11 @@ #宠物伤害比例提升(A值万分率) Def_Effect_PetDamPer = 25 #冰攻(A值为具体值) 真实伤害元素攻击, 无视防御, 只有元素防御可以减免伤害, 此项目用冰元素代替 -Def_Effect_IceAtk = 26 #20005 +Def_Effect_IceAtk = 26 #冰防(A值为具体值) 真实抵抗元素抵抗, 减免元素攻击造成的伤害, 此项目用冰元素代替 -Def_Effect_IceDef = 27 #20010 +Def_Effect_IceDef = 27 #无视防御几率提升 -Def_Effect_IgnoreDefRate = 28 #20021 +Def_Effect_IgnoreDefRate = 28 #无视防御抗性, 受击时减少对方的无视防御属性 Def_Effect_IgnoreDefRateReduce = 29 #玩家每次被攻击有20%的几率减少伤害比率 @@ -377,13 +378,13 @@ Def_Effect_FaintRate = 33 #有几率使即将受到的眩晕效果不生效 Def_Effect_FaintDefRate = 34 -# 输出伤害, 对目标攻击造成最终伤害后,再加成一定伤害值 +# 附加伤害 Def_Effect_FinalHurt = 35 -# 减少承受伤害, 减少被攻击受到的最终伤害的部分伤害值 +# 附加减伤 Def_Effect_FinalHurtReduce = 36 -# 伤害加成 - PVP, 技能百分比外层 +# PVP技能加成 百分比 Def_Effect_DamagePerPVP = 37 -# 伤害减少 - PVP +# PVP技能减免 百分比 Def_Effect_DamagePerPVPReduce = 38 # 连击几率(默认100%技能伤害) Def_Effect_ComboRate = 39 @@ -465,7 +466,7 @@ Def_Effect_MaxAtk = 68 # 最大攻击 #增加%d防御值(A值填万分率) -Def_Effect_DefPer = 69 #20024 +Def_Effect_DefPer = 69 #暴击伤害倍率(a值为万分率,直接加上) Def_Effect_SuperHitPer = 70 #移动速度百分比(A值万分率) @@ -532,6 +533,23 @@ Def_Effect_Luck = 120 # 气运 Def_Effect_LuckPer = 133 # 气运百分率 + +Def_Effect_NormalHurt = 134 # 普通攻击增伤 +Def_Effect_NormalHurtPer = 135 # 普通攻击加成 +Def_Effect_FabaoHurt = 136 # 法宝技能增伤 +Def_Effect_FabaoHurtPer = 137 # 法宝技能加成 + +Def_Effect_SuperHitRateReduce = 138 # 暴击概率抗性 +Def_Effect_LuckyHitReduce = 139 # 会心一击伤害固定减伤 +Def_Effect_LuckyHitPer = 140 # 会心一击伤害百分比 +Def_Effect_DamagePVE = 141 # PVE固定伤害 +Def_Effect_FinalHurtPer = 142 # 最终伤害万分率 +Def_Effect_FinalHurtReducePer = 143 # 最终伤害减少万分 +Def_Effect_YinjiTime = 144 # 每X毫秒自动消失一个印记 +Def_Effect_TheFBSkillsCD = 145 # 减少指定技能组CD XX% +Def_Effect_BurnValue = 146 # 灼烧固定伤害 +Def_Effect_BurnTimePer = 147 # 延长灼烧时间百分比 +Def_Effect_SubSpeedPer = 148 # 减移动速度百分比 #增加%d物理伤害值,其中a值为伤害值 Def_Effect_AddAtk = 1005 @@ -625,11 +643,10 @@ Def_BT_Campaign_Recharge, #累计充值(开服活动榜) Def_BT_Campaign_PetLV, #灵宠等级(开服活动榜) - Def_BT_ZhuXianTower, #诛仙塔榜 Def_BT_NewFCCostGold, #消费排行榜(新仙界盛典) Def_BT_Max, #排行榜最大类型 -) = range(0, 24 + 2) +) = range(0, 23 + 2) #职业对应战力排行榜类型 JobFightPowerBillboardDict = { @@ -641,7 +658,7 @@ #排行榜Value1存储境界信息的榜单列表 BTValue1_OfficialRankList = [Def_BT_FightPower, Def_BT_FightPower_Warrior, Def_BT_FightPower_Wizard, Def_BT_FightPower_Assassin, Def_BT_LV, Def_BT_FightPower_Horse, Def_BT_FightPower_Pet, Def_BT_TrialTower, Def_BT_OffLineEfficient, - Def_BT_FBHelpBattle, Def_BT_ZhuXianTower, + Def_BT_FBHelpBattle, ] ##---比率--- @@ -775,12 +792,12 @@ # 属性刷新类型定义, BYTE, 从146开始, C++定义到 IPY_PlayerDefine.CDBPlayerRefresh_OperateInfo ( -CDBPlayerRefresh_SuperHitReduce, # 暴击抗性 146 -CDBPlayerRefresh_LuckyHitRateReduce, # 幸运一击抗概率 +CDBPlayerRefresh_SuperHitReduce, # 暴击固定值减少 146 +CDBPlayerRefresh_LuckyHitRateReduce, # 会心一击抗概率 CDBPlayerRefresh_SkillAtkRateReduce, # 技能减伤 -CDBPlayerRefresh_DamagePer, # 增加伤害 +CDBPlayerRefresh_DamagePVP, # PVP固定伤害 CDBPlayerRefresh_SpeedValue, # 移动速度值 150 -CDBPlayerRefresh_151, # +CDBPlayerRefresh_DamagePVE, # 对NPC的伤害固定值 CDBPlayerRefresh_PetDamPer, # 灵宠增加伤害 CDBPlayerRefresh_IgnoreDefRateReduce, # 无视防御抗性 CDBPlayerRefresh_DamChanceDef, # 概率抵御, 玩家每次被攻击有20%的几率减少伤害比率 @@ -820,7 +837,7 @@ CDBPlayerRefresh_NPCHurtAddPer, # 对怪物伤害加成 CDBPlayerRefresh_FinalHurtPer, # 最终输出伤害百分比 CDBPlayerRefresh_TalentPoint, # 天赋点数 190 -CDBPlayerRefresh_191, # 废弃 191 +CDBPlayerRefresh_DamagePVPReduce, # PVP固定伤害减少 CDBPlayerRefresh_GodWeaponLV_1, # 神兵等级 - 类型1 192 CDBPlayerRefresh_GodWeaponLV_2, # 神兵等级 - 类型2 193 CDBPlayerRefresh_GodWeaponLV_3, # 神兵等级 - 类型3 194 @@ -839,7 +856,12 @@ CDBPlayerRefresh_NormalHurtPer, # 属性普通攻击加成:普通攻击附加的伤害百分比 207 CDBPlayerRefresh_FabaoHurt, # 属性法宝技能增伤:法宝技能攻击附加的固定值伤害 208 CDBPlayerRefresh_FabaoHurtPer, # 属性法宝技能加成:法宝技能攻击附加的伤害百分比 209 -) = range(146, 210) +CDBPlayerRefresh_SuperHitRateReduce, # 暴击概率抗性 210 +CDBPlayerRefresh_LuckyHitReduce, # 会心伤害减免固定值 +CDBPlayerRefresh_FinalHurtReducePer, # 最终伤害减少百分比 +CDBPlayerRefresh_YinjiTime, # 每X秒减少印记时间,毫秒 +CDBPlayerRefresh_YinjiCnt, # 当前印记数 214 +) = range(146, 215) TYPE_Price_Gold_Paper_Money = 5 # 金钱类型,(先用礼券,再用金子) TYPE_Price_Family_Contribution = 6 # 战盟贡献度(活跃度转换得来) @@ -1007,7 +1029,7 @@ Def_UniversalGameRecType_FBHelpBattleRecord, #助战未同步记录10 Def_UniversalGameRecType_ZhuXianBossRecord, #诛仙BOSS结算记录11 Def_UniversalGameRecType_LuckyTreasure, #幸运鉴宝大奖记录12 - Def_UniversalGameRecType_13, + Def_UniversalGameRecType_FairyDomain, #缥缈仙域事件次数记录13 Def_UniversalGameRecType_Reward, # 通用奖励表(TopBar)14 Def_UniversalGameRecType_15, Def_UniversalGameRecType_16, @@ -1200,6 +1222,9 @@ CrossServerMsg_CollectNPCOK = "CollectNPCOK" # 采集NPC完成 CrossServerMsg_EnterFBRet = "EnterFBRet" # 请求进入跨服副本返回信息 CrossServerMsg_FBEnd = "FBEnd" # 完成跨服副本 +CrossServerMsg_NPCAttackCount = "NPCAttackCount" # 攻击NPC次数记录 +CrossServerMsg_SendMail = "SendMail" # 发送邮件 +CrossServerMsg_FBPlayerCount = "FBPlayerCount" # 副本功能线路人数同步 # 子服发送跨服信息定义 ClientServerMsg_ServerInitOK = "ServerInitOK" # 子服启动成功 @@ -1215,10 +1240,12 @@ ClientServerMsg_SetPlayerAttrValue = "SetPlayerAttrValue" # 玩家属性数值更新 ClientServerMsg_CollectNPC = "CollectNPC" # 采集NPC ClientServerMsg_EnterFB = "EnterFB" # 请求进入跨服副本 +ClientServerMsg_AddBuff = "AddBuff" # 添加BUFF #跨服广播类型定义 CrossNotify_World = "World" CrossNotify_Family = "Family" +CrossNotify_Player = "Player" #角色改名结果 ( @@ -1432,10 +1459,11 @@ DailyActionID_HelpBattleCheckIn, # 助战登记 20 DailyActionID_CrossReamPK, # 跨服PK 21 DailyActionID_FamilyBoss1, # 仙盟BOSS 22 -DailyActionID_FamilyBoss2, # 废弃 23 +DailyActionID_SkyTower, # 天星塔 23 DailyActionID_HorsePetBoss, # 骑宠BOSS 24 DailyActionID_FairyDomain, # 缥缈仙域 25 -) = range(1, 25 + 1) +DailyActionID_LVUP, # 玩家等级提升 26 +) = range(1, 26 + 1) -- Gitblit v1.8.0