From 34a4f24e4513fb9b63eb1e88c49e3f5316b76791 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 08 四月 2021 14:51:01 +0800
Subject: [PATCH] 8870 【BT2】【后端】战力、伤害、玩家生命的数值调整为大数值(瞬间群体/单体回血技能回血量支持超20E)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_8.py | 2 +-
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py | 5 +++--
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_18.py | 2 +-
3 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
index b3ae73d..c9f56fd 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillCommon.py
@@ -2184,7 +2184,7 @@
# @param cureType 治疗类型(影响公式)自定义:1.伤害 2.最大血量
# @return 治疗值
# @remarks 获得治疗值
-def GetCureHP(userObj, tagObj, curSkill, cureType=ChConfig.Def_Cure_Attack):
+def GetCureHP(userObj, tagObj, curSkill, cureType=ChConfig.Def_Cure_Attack, largeNum=False):
curePercent = 1.0 #治疗加成值
cureBaseValue = 0 #治疗基础值
@@ -2235,7 +2235,8 @@
skillPer += PassiveBuffEffMng.GetPassiveSkillValueByTriggerType(userObj, None, curSkill, ChConfig.TriggerType_AddHP)/float(ChConfig.Def_MaxRateValue)
#公式计算治疗值
cureHP = int((cureBaseValue * skillPer + skillValue + addExValue) * curePercent)
- cureHP = min(cureHP, ChConfig.Def_UpperLimit_DWord)
+ if not largeNum:
+ cureHP = min(cureHP, ChConfig.Def_UpperLimit_DWord)
#GameWorld.DebugLog("获取治疗值(%s):cureType=%s,cureBaseValue=%s,skillPer=%s,skillValue=%s"
# % (cureHP, cureType, cureBaseValue, skillPer, skillValue))
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_18.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_18.py
index 4ae8701..6d19178 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_18.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_18.py
@@ -68,7 +68,7 @@
valueList = []
for cureObjInfo in cureObjList[:cureCount]:
cureObj = cureObjInfo[1]
- addValue = SkillCommon.GetCureHP(attacker, cureObj, curSkill, cureType)
+ addValue = SkillCommon.GetCureHP(attacker, cureObj, curSkill, cureType, largeNum=True)
#GameWorld.DebugLog("加血: curHP=%s,maxHP=%s,addHP=%s" % (GameObj.GetHP(obj), GameObj.GetMaxHP(obj), addValue))
#总量 最大生命值的百分比 回血 附加多少
SkillCommon.SkillAddHP(cureObj, curSkill.GetSkillTypeID(), addValue, False)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_8.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_8.py
index 98c9742..250699c 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_8.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Skill/GameSkills/SkillModule_8.py
@@ -46,7 +46,7 @@
cureSetEff = curSkill.GetEffect(0) # 恢复规则设定效果
cureType = cureSetEff.GetEffectValue(2) # 恢复类型
- addValue = SkillCommon.GetCureHP(attacker, defender, curSkill, cureType)
+ addValue = SkillCommon.GetCureHP(attacker, defender, curSkill, cureType, largeNum=True)
if addValue <= 0:
return
--
Gitblit v1.8.0