From af509a0b0200ad02df7b970245723e54cf187959 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期三, 07 四月 2021 16:25:03 +0800
Subject: [PATCH] 8870 【BT2】【后端】战力、伤害、玩家生命的数值调整为大数值(buff值限制不超过20E)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_801.py        |    2 +-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py                    |    3 ++-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py |    2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
index 6cec0cd..c29d622 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Attack/AttackLogic/AttackCommon.py
@@ -1919,7 +1919,7 @@
             findBuff = SkillCommon.FindBuffByID(defObj, skillID)[0]
             if findBuff:
                 # 用于回血
-                findBuff.SetValue(int(findBuff.GetValue() + absortValue))
+                findBuff.SetValue(min(int(findBuff.GetValue() + absortValue), ChConfig.Def_UpperLimit_DWord))
     
     hurtValue = max(int(hurtValue), 0)
     # buff减少伤害百分比
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
index d5e5a0b..e190120 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
@@ -1239,7 +1239,8 @@
 #  @return None
 #  @remarks 函数详细说明.
 def EquipAddBuff(curPlayer, addSkillID, value=0):
-
+    
+    value = min(value, ChConfig.Def_UpperLimit_DWord)
     curBuff = curPlayer.GetEquipBuff().AddBuff(addSkillID, 0, False)
     curBuff.SetOwnerID(curPlayer.GetID())
     curBuff.SetOwnerType(curPlayer.GetGameObjType())
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_801.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_801.py
index d5b4a43..b88f66c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_801.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameBuffs/Buff_801.py
@@ -25,7 +25,7 @@
 #  @return None
 def DoAddBuffOver(curObj, addBuff, curEffect, tick, buffOwner):
     # SetValue1用于当前吸收值
-    addBuff.SetValue(GameObj.GetMaxHP(curObj)*curEffect.GetEffectValue(1)/ChConfig.Def_MaxRateValue) # 吸收上限
+    addBuff.SetValue(min(GameObj.GetMaxHP(curObj)*curEffect.GetEffectValue(1)/ChConfig.Def_MaxRateValue, ChConfig.Def_UpperLimit_DWord)) # 吸收上限
     return
 
 

--
Gitblit v1.8.0