From 8a9416e0fe494446f5aa121b9b5c05abebf5c6b9 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期六, 01 九月 2018 17:55:28 +0800
Subject: [PATCH] Add: A4 12 搜索家族支持;

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py
index 17efc16..d39dbf9 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py
@@ -27,7 +27,8 @@
 import PlayerFairyCeremony
 import EventReport
 import PyGameData
-
+import ItemCommon
+import ItemControler
 
 #当前副本地图的状态
 (
@@ -349,6 +350,11 @@
     if hasCollect:
         PlayerControl.NotifyCode(curPlayer, 'Party_HadCollected')
         return
+    needSpace = len(IpyGameDataPY.GetFuncEvalCfg('FamilyPartyDesk', 3))
+    packSpace = ItemCommon.GetItemPackSpace(curPlayer, IPY_GameWorld.rptItem, needSpace)
+    if needSpace > packSpace:
+        PlayerControl.NotifyCode(curPlayer, "GeRen_chenxin_998371")
+        return
     return True
 
 ##副本中,采集物需要Loading时间.
@@ -371,6 +377,9 @@
     
     GameWorld.DebugLog('    宴会采集成功!', playerID)
     #给奖励
+    itemAward = IpyGameDataPY.GetFuncEvalCfg('FamilyPartyDesk', 3)
+    for itemID, itemCount, isBind in itemAward:
+        ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isBind, [IPY_GameWorld.rptItem])
     addPoint = IpyGameDataPY.GetFuncCfg('FamilyPartyDesk')
     PlayerControl.NotifyCode(curPlayer, 'Party_CollectSuccess', [addPoint])
     PlayerFamily.AddPlayerFamilyActiveValue(curPlayer, addPoint, True, ShareDefine.Def_AddFAVReason_FamilyParty)

--
Gitblit v1.8.0