From 025b8dcf0ea6bb2ced691a2833d543b3029e1b0e Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 11 一月 2025 19:11:53 +0800
Subject: [PATCH] 10263 【越南】【英文】后端支持NPC仿真实玩家战斗和快速战斗(最大护盾改为存ExAttr16)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py | 27 ++++++---------------------
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py | 1 -
2 files changed, 6 insertions(+), 22 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
index 5a6b097..f6de749 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -3315,7 +3315,6 @@
Def_PlayerKey_AttrDamagePerPVPReduce = "DamagePerPVPReduce" #伤害输出计算百分比PVP减少
Def_PlayerKey_AttrHurtPer = "AttrHurtPer" #受伤计算百分比
Def_PlayerKey_AttrDamChanceDef = "DamChanceDef" #20%的概率抵御伤害比率
-Def_PlayerKey_AttrMaxProDef = "MaxProDef" #最大防护值
Def_PlayerKey_AttrProDefHPPer = "ProDefHPPer" #生命上限换算为防护值的百分比
Def_PlayerKey_AttrProDefAbsorb = "ProDefAbsorb" #防护值吸收伤害比率
Def_PlayerKey_AttrPetMinAtk = "AttrPetMinAtk" #宠物最小攻击力
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 32f9149..3cd19c4 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerControl.py
@@ -5137,8 +5137,6 @@
#获取策划配置的表格
GodWeapon4 = IpyGameDataPY.GetFuncCfg("GodWeapon4", 2)
maxProDef = eval(FormulaControl.GetCompileFormula("GodWeapon4", GodWeapon4))
- maxProDef = min(maxProDef, ChConfig.Def_UpperLimit_DWord)
-
SetMaxProDef(curPlayer, int(maxProDef))
afterMaxProDef = GetMaxProDef(curPlayer)
@@ -6530,23 +6528,8 @@
return [attr15%1000, attr15/1000%1000, attr15/1000000]
def SetFaceEquipIndex(curPlayer, value): return curPlayer.SetExAttr15(value)
-# 返回最大的灵根系
-def GetLingGenMaxIndex(curPlayer):
- return curPlayer.GetExAttr16()
-
def SetLingGenMaxIndex(curPlayer):
- indexList = [
- ShareDefine.Def_Effect_Metal, # 金
- ShareDefine.Def_Effect_Wood, # 木
- ShareDefine.Def_Effect_Water, # 水
- ShareDefine.Def_Effect_Fire, # 火
- ShareDefine.Def_Effect_Earth, # 土
- ]
-
-
- tempList = [curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_AddPointValue % attrID) for attrID in indexList]
-
- curPlayer.SetExAttr16(indexList[tempList.index(max(tempList))])
+ return
# 境界难度等级
def GetRealmDifficulty(curPlayer): return curPlayer.GetExAttr18()
@@ -7558,10 +7541,12 @@
return
#---最大防护值----
-def GetMaxProDef(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrMaxProDef)
+def GetMaxProDef(curPlayer): return curPlayer.GetExAttr16()
def SetMaxProDef(curPlayer, value):
- curPlayer.SetDict(ChConfig.Def_PlayerKey_AttrMaxProDef, value)
- SendPropertyRefresh(curPlayer, ShareDefine.CDBPlayerRefresh_MaxProDef, value) # 周围玩家需要通知
+ value = min(value, ChConfig.Def_UpperLimit_DWord)
+ curPlayer.SetExAttr16(value)
+ curPlayer.SendPropertyRefresh(ShareDefine.CDBPlayerRefresh_MaxProDef, value, 0, True) # 周围玩家需要通知
+ return
#---生命上限换算为防护值的百分比----
def GetProDefHPPer(curPlayer): return curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_AttrProDefHPPer)
--
Gitblit v1.8.0