From afea2d9d4b9cb6d0982c02a775e8198fc2421c53 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期五, 08 十二月 2023 18:21:28 +0800 Subject: [PATCH] 10019 【砍树】回合战斗(增加抗连击、反击、抗反击、吸血、抗吸血属性,玩家及NPC属性接口通用;连击、反击属性效果支持;) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 41 +---------------------------------------- 1 files changed, 1 insertions(+), 40 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py index eb86a44..790fbfe 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py @@ -5362,7 +5362,7 @@ def __SetAtkInterval(self): curPlayer = self.__Player - atkSpeed = GetAtkSpeed(curPlayer) + atkSpeed = GameObj.GetAtkSpeed(curPlayer) formula = IpyGameDataPY.GetFuncCfg("AtkInterval") atkInterval = 0 if not formula else eval(FormulaControl.GetCompileFormula("AtkInterval", formula)) @@ -6834,18 +6834,6 @@ def SetSpeedValue(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_SpeedValue, value) SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_SpeedValue, value, True) # 移动速度值暂定广播周围玩家 - -##获取玩家攻击速度,用于计算攻击间隔 -# @param curPlayer 玩家实例 -# @return 玩家攻击速度 -def GetAtkSpeed(curPlayer): - return curPlayer.GetBattleValEx1() - -##设置玩家攻击速度,用于计算攻击间隔 -# @param curPlayer 玩家实例 -# @return None -def SetAtkSpeed(curPlayer, value): - curPlayer.SetBattleValEx1(value, True) #---攻击回复血量比率---- ## 获取玩家攻击回复血量比率 @@ -6935,11 +6923,6 @@ ## 抗卓越一击概率 def GetGreatHitRateReduce(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_GreatHitRateReduce) def SetGreatHitRateReduce(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_GreatHitRateReduce, value) -## 抗暴击概率 -def GetSuperHitRateReduce(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_SuperHitRateReduce) -def SetSuperHitRateReduce(curPlayer, value): - curPlayer.SetDict(ChConfig.Def_PlayerKey_SuperHitRateReduce, value) - SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_SuperHitRateReduce, value) ## 抗无视防御概率 def GetIgnoreDefRateReduce(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_IgnoreDefRateReduce) def SetIgnoreDefRateReduce(curPlayer, value): @@ -7155,17 +7138,6 @@ def SetReduceBackHPPer(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_ReduceBackHPPer, value) -#---触发击晕---- -def GetFaintRate(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrFaintRate) -def SetFaintRate(curPlayer, value): - curPlayer.SetDict(ChConfig.Def_PlayerKey_AttrFaintRate, value) - SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_FaintRate, value) -#---击晕抵抗---- -def GetFaintDefRate(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrFaintDefRate) -def SetFaintDefRate(curPlayer, value): - curPlayer.SetDict(ChConfig.Def_PlayerKey_AttrFaintDefRate, value) - SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_FaintDefRate, value) - #---触发定身---- def GetAtkerFreezed(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrAtkerFreezed) def SetAtkerFreezed(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_AttrAtkerFreezed, value) @@ -7174,17 +7146,6 @@ def GetAddAngry(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrAddAngry) def SetAddAngry(curPlayer, value): curPlayer.SetDict(ChConfig.Def_PlayerKey_AttrAddAngry, value) -#---连击几率---- -def GetComboRate(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrComboRate) -def SetComboRate(curPlayer, value): - curPlayer.SetDict(ChConfig.Def_PlayerKey_AttrComboRate, value) - SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_ComboRate, value) -#---连击伤害---- -def GetComboDamPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrComboDamPer) -def SetComboDamPer(curPlayer, value): - curPlayer.SetDict(ChConfig.Def_PlayerKey_AttrComboDamPer, value) - SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_ComboDamPer, value) - #---技能攻击比例减少---- def GetSkillAtkRateReduce(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_SkillAtkRateReduce) def SetSkillAtkRateReduce(curPlayer, value): -- Gitblit v1.8.0