From 6d52c69be5170f6518ac9be8aa05bae7bfd26b54 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 21 七月 2025 14:24:43 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(去除旧属性;优化命令Hero、PrintFightPower;优化武将技能战力计算;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py |   56 ++++++++++++++++++++++++++++----------------------------
 1 files changed, 28 insertions(+), 28 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py
index e948c74..0c4fa48 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_502.py
@@ -25,34 +25,34 @@
 #  @return None
 def OnCalcBuffEx(defender, curEffect, calcDict, curBuff):
 
-    totalHP = 0
-    equipPack = defender.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
-    for i in xrange(equipPack.GetCount()):
-        curEquip = equipPack.GetAt(i)
-        
-        if curEquip.IsEmpty():
-            continue
-        if i not in ChConfig.EquipPlace_BaseArmor:
-            continue
-        if not curEquip.GetItemQuality():
-            continue
-        #基础属性效果
-        for i in range(0, curEquip.GetEffectCount()):
-            equipEffect = curEquip.GetEffectByIndex(i)
-            if not equipEffect:
-                break
-            
-            effectID = equipEffect.GetEffectID()
-            if effectID == 0:
-                #最后一个
-                break
-            if effectID != ShareDefine.Def_Effect_MaxHP:
-                continue
-            totalHP += equipEffect.GetEffectValue(0)
-    
-    totalHP = int(totalHP*float(curEffect.GetEffectValue(0))/ChConfig.Def_MaxRateValue)
-    
-    calcDict[ChConfig.TYPE_Calc_AttrMaxHP] = calcDict.get(ChConfig.TYPE_Calc_AttrMaxHP, 0) + totalHP
+#    totalHP = 0
+#    equipPack = defender.GetItemManager().GetPack(IPY_GameWorld.rptEquip)
+#    for i in xrange(equipPack.GetCount()):
+#        curEquip = equipPack.GetAt(i)
+#        
+#        if curEquip.IsEmpty():
+#            continue
+#        if i not in ChConfig.EquipPlace_BaseArmor:
+#            continue
+#        if not curEquip.GetItemQuality():
+#            continue
+#        #基础属性效果
+#        for i in range(0, curEquip.GetEffectCount()):
+#            equipEffect = curEquip.GetEffectByIndex(i)
+#            if not equipEffect:
+#                break
+#            
+#            effectID = equipEffect.GetEffectID()
+#            if effectID == 0:
+#                #最后一个
+#                break
+#            if effectID != ShareDefine.Def_Effect_MaxHP:
+#                continue
+#            totalHP += equipEffect.GetEffectValue(0)
+#    
+#    totalHP = int(totalHP*float(curEffect.GetEffectValue(0))/ChConfig.Def_MaxRateValue)
+#    
+#    calcDict[ChConfig.TYPE_Calc_AttrMaxHP] = calcDict.get(ChConfig.TYPE_Calc_AttrMaxHP, 0) + totalHP
     return
 
 

--
Gitblit v1.8.0