From 403b9cc018af79f3fd0870a37bfea7b0d65c38a5 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期三, 30 九月 2020 16:34:48 +0800
Subject: [PATCH] 0312 模拟密码

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/BossHurtMng.py |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/BossHurtMng.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/BossHurtMng.py
index 64ba75e..1996d44 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/BossHurtMng.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/BossHurtMng.py
@@ -355,8 +355,7 @@
                 randAwardList = GameWorld.GetResultByRandomList(actionRandAwardList)
                 if randAwardList:
                     for itemID, itemCnt, isBind in randAwardList:
-                        ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, isBind,
-                                                     [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere], True)
+                        ItemControler.GivePlayerItem(curPlayer, itemID, itemCnt, 0, [IPY_GameWorld.rptItem, IPY_GameWorld.rptAnyWhere])
             
                 
         # 同步伤害列表
@@ -546,12 +545,13 @@
         if limitIndex !=-1 and index != limitIndex:
             continue
         killCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCnt % index, 0)
-        #hasBuyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCntBuyCnt % index, 0)
+        hasBuyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCntBuyCnt % index, 0)
         itemAddCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCntItemAddCnt % index, 0)
         infoPack = ChPyNetSendPack.tagMCBossCntInfo()
         infoPack.BossType = index
         infoPack.KillCnt = killCnt
         infoPack.ItemAddCnt = itemAddCnt
+        infoPack.BuyCnt = hasBuyCnt
         packdata.KillCntInfoList.append(infoPack)
         
     packdata.Cnt = len(packdata.KillCntInfoList)
@@ -561,15 +561,15 @@
 
 # BOSS剩余可击杀次数
 def GetCanKillBossCnt(curPlayer, bossFuncIndex):
+    #获取BOSS剩余可击杀数量与最大数量
     hasKillCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCnt%bossFuncIndex, 0)
     itemAddKillCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCntItemAddCnt%bossFuncIndex, 0)
+    hasBuyCnt = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_Boss_KillCntBuyCnt%bossFuncIndex, 0)
     killLimitPrivilege = IpyGameDataPY.GetFuncEvalCfg('KillBossCntLimit', 4, {}).get(bossFuncIndex, 0)
     if killLimitPrivilege:
         limitCnt = PlayerVip.GetPrivilegeValue(curPlayer, killLimitPrivilege)
     else:
         limitCnt = IpyGameDataPY.GetFuncEvalCfg('KillBossCntLimit', 2, {}).get(bossFuncIndex, 0)
-    
-    
-    return max(limitCnt + itemAddKillCnt - hasKillCnt, 0)
+    return max(0, limitCnt + itemAddKillCnt + hasBuyCnt - hasKillCnt), limitCnt
 
 

--
Gitblit v1.8.0