From dcfb2c6f6f06b62e4285b5c1cd7b6fe01e21c5b7 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 06 十二月 2021 11:29:30 +0800
Subject: [PATCH] 9341 【BT5】【主干】【后端】情缘系统(增加购买烟花全服广播)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTruck.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTruck.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTruck.py
index 60ffbd4..47792f0 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTruck.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerTruck.py
@@ -555,7 +555,7 @@
GameWorld.Log("DoPlayerEnterTruck -> 无法找到镖车" , curPlayer.GetPlayerID())
return
-# if curPlayerTruck.GetHP() == 0:
+# if GameObj.GetHP(curPlayerTruck) == 0:
# GameWorld.Log("镖车已死亡, 拒绝")
# return
@@ -1157,7 +1157,7 @@
# @return: 损坏镖车最小血量
def GetTruckDestroyMinHP(curTruck):
destroyMinHPRate = ReadChConfig.GetEvalChConfig("TruckDestroyMinHPRate")
- minHP = max(0, int(curTruck.GetMaxHP() * destroyMinHPRate/float(ChConfig.Def_MaxRateValue)))
+ minHP = max(0, int(GameObj.GetMaxHP(curTruck) * destroyMinHPRate/float(ChConfig.Def_MaxRateValue)))
return minHP
--
Gitblit v1.8.0