From 0b52fea0c2dec053c44678d94bd66c10db1b0b91 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 06 四月 2021 17:27:57 +0800 Subject: [PATCH] 8870 【BT2】【后端】战力、伤害、玩家生命的数值调整为大数值(超21亿) --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py | 9 +++++---- 1 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py index d57bc94..3a911a5 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/QuestRunner.py @@ -65,6 +65,7 @@ import PlayerHorse import FBCommon import NPCCommon +import GameObj import math import time @@ -1812,8 +1813,8 @@ def ConditionType_Get_Hp_Percent(curPlayer, curMission, curConditionNode): conditionValue = int(curConditionNode.GetAttribute("value")) conditionType = curConditionNode.GetAttribute("type") - curPlayerHP = curPlayer.GetHP() - conditionHP = curPlayer.GetMaxHP() * conditionValue / 100 + curPlayerHP = GameObj.GetHP(curPlayer) + conditionHP = GameObj.GetMaxHP(curPlayer) * conditionValue / 100 return QuestRunnerValue.GetEval(conditionType, curPlayerHP, conditionHP) @@ -3862,7 +3863,7 @@ def DoType_Set_Hp_Percent(curPlayer, curMission, curActionNode): value = GameWorld.ToIntDef(curActionNode.GetAttribute("value")) - maxHP = curPlayer.GetMaxHP() + maxHP = GameObj.GetMaxHP(curPlayer) playerHP = maxHP * value / ShareDefine.Def_Percentage smallHP = 1 @@ -3873,7 +3874,7 @@ #防范纠错 最少1点血,最多满血 playerHP = GameWorld.ToIntArea(playerHP, smallHP, maxHP) - curPlayer.SetHP(playerHP) + GameObj.SetHP(curPlayer, playerHP) #--------------------------------------------------------------------- ##设置人物法量百分比 -- Gitblit v1.8.0