From c67a2d59e881e3d1df1a4142983e76e8fb5db24a Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 28 十二月 2018 21:26:28 +0800
Subject: [PATCH] 5424 【后端】【1.4】跨服竞技场开发(匹配规则优化,优先匹配同段位的,同段位不足两个人的支持按段位区间匹配)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py
index f40d4d2..1c1c849 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/MakeItemCount.py
@@ -48,6 +48,15 @@
         GameWorld.DebugAnswer(curPlayer, '该物品不存在 = %s' % (itemID))
         return
     packCount = itemData.GetPackCount()
+    if itemID in ChConfig.Def_TransformItemIDList:
+        curItem = ItemControler.GetOutPutItemObj(itemID)
+        ItemControler.SetItemCount(curItem, count, curPlayer.GetPlayerID(), curPlayer.GetAccID(),
+                                   curPlayer.GetPlayerName())
+        PlayerItemControler = ItemControler.PlayerItemControler(curPlayer)
+        if not PlayerItemControler.PutInItem(IPY_GameWorld.rptItem, curItem, event=[ChConfig.ItemGive_GMMake, False, {"CMD":"MakeItemCount"}]):
+            GameWorld.DebugAnswer(curPlayer, "放入物品失败!")
+        return
+    
     if packCount > 1:
         __DoGMGivePlayerItem(curPlayer, itemID, count, runeLV)
     else:
@@ -66,7 +75,8 @@
 
     if curItem.GetType() == ChConfig.Def_ItemType_Rune and runeLV:
         curItem.SetUserAttr(ShareDefine.Def_IudetRuneLV, runeLV)
-        
+    if curItem.GetType() in [ChConfig.Def_ItemType_GatherSoul,ChConfig.Def_ItemType_GatherSoulCore] and runeLV:
+        curItem.SetUserAttr(ShareDefine.Def_IudetGatherSoulLV, runeLV)
     #将物品放置玩家背包
     PlayerItemControler = ItemControler.PlayerItemControler(curPlayer)
     if not PlayerItemControler.PutInItem(IPY_GameWorld.rptItem, curItem, event=[ChConfig.ItemGive_GMMake, False, {"CMD":"MakeItemCount"}]):

--
Gitblit v1.8.0