From 3cc3d431e7edad0a631e6de2ba64b04123c421c9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 24 十一月 2020 16:42:18 +0800
Subject: [PATCH] 4872 【BT】直购礼包(含超级现金卡)购买后背包不足物品少给(冲突补同步)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
index e8c8889..5474f46 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoin.py
@@ -298,14 +298,7 @@
         PlayerControl.GiveMoney(curPlayer, IPY_GameWorld.TYPE_Price_Gold_Money, prizeGold, eventName, addDRDict, isGiveBourseMoney=isAddBourseMoney)
         
     if giveItemList:
-        needSpace = len(giveItemList)
-        emptySpace = ItemCommon.GetItemPackSpace(curPlayer, IPY_GameWorld.rptItem, needSpace)
-        if emptySpace < needSpace:
-            PlayerControl.SendMailByKey("", [curPlayer.GetPlayerID()], giveItemList)
-        else:
-            for itemID, itemCount, isBind in giveItemList:
-                ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, 0, [IPY_GameWorld.rptItem], 
-                                             event=[ChConfig.ItemGive_CTG, True, addDRDict])
+        ItemControler.GivePlayerItemOrMail(curPlayer, giveItemList, "", event=[ChConfig.ItemGive_CTG, True, addDRDict])
         if notifyMark:
             mainItemID = giveItemList[0][0]
             PlayerControl.WorldNotify(0, notifyMark, [curPlayer.GetName(), mainItemID, ''])

--
Gitblit v1.8.0