From 875d928db2370eaaa6a43bf01d0761d7939dab5f Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 13 十月 2018 17:14:42 +0800
Subject: [PATCH] 4064 【后端】【主干】直接给玩家的货币类物品优化处理; 2094 邮件发放神兽装备,神兽背包空间不足逻辑错误;
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py
index 43083e9..bab5052 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MergeBoss.py
@@ -40,7 +40,7 @@
import NPCCommon
import BuffSkill
import ChNPC
-
+import GameObj
import random
#当前副本地图的状态
@@ -807,7 +807,7 @@
objID = curNPC.GetID()
npcID = curNPC.GetNPCID()
- g_curBossDict["%s_%s" % (objID, npcID)] = [objID, npcID, curNPC.GetHP(), curNPC.GetMaxHP(),
+ g_curBossDict["%s_%s" % (objID, npcID)] = [objID, npcID, GameObj.GetHP(curNPC), GameObj.GetMaxHP(curNPC),
curNPC.GetPosX(), curNPC.GetPosY()]
__CheckOutTimeBuff(tick)
@@ -1142,7 +1142,7 @@
hpPerList = sorted(hpPerDict.keys(), reverse = True)
maxBuffCnt = bossBuffInfo[2]
- nowHPPer = defender.GetHP() * 100 / defender.GetMaxHP() # 当前百分比
+ nowHPPer = GameObj.GetHP(defender) * 100 / GameObj.GetMaxHP(defender) # 当前百分比
gameFB = GameWorld.GetGameFB()
hpPerMarkKey = FBDict_BossHPPerMark % (objID, npcID)
hpPerLogicMark = gameFB.GetGameFBDictByKey(hpPerMarkKey)
@@ -1219,7 +1219,7 @@
# @param tick 时间戳
# @return 无意义
# @remarks
-def OnCollectOK(curPlayer, tick):
+def OnCollectOK(curPlayer, npcID, tick):
global g_buffOwnerNPCDict
global g_bossBuffCntDict
--
Gitblit v1.8.0