From 0829a4c2b93d65e8ca2251c9477095ef65e93ef8 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 30 十二月 2025 22:12:54 +0800
Subject: [PATCH] 129 【战斗】战斗系统-服务端(诸葛亮觉醒技能,剩最后一个概率未处理;优化效果5013;增加技能目标范围类型 11-继承主技能目标同横排,12-继承主技能目标同纵排;)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py |   18 ++++++++++++++++--
 1 files changed, 16 insertions(+), 2 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py
index 19ffda5..6814d1e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py
@@ -331,8 +331,22 @@
     SyncSuccessAwardRecord(curPlayer, [succID], True)
     
     awardItemList = ipyData.GetAwardItemList()
-    if awardItemList:
-        ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["SuccessAward", False, {}])
+    #if awardItemList:
+    #    ItemControler.GivePlayerItemOrMail(curPlayer, awardItemList, event=["SuccessAward", False, {}])
+    
+    # 支持定制属性物品
+    isAuctionItem = 0
+    notifyAwardList = []
+    appointInfo = {}
+    for itemInfo in awardItemList:
+        itemID, itemCount = itemInfo[:2]
+        appointID = itemInfo[2] if len(itemInfo) > 2 else 0 
+        setAttrDict = {ShareDefine.Def_CItemKey_AppointID:appointID} if appointID else {}
+        if not ItemControler.GivePlayerItem(curPlayer, itemID, itemCount, isAuctionItem, event=["SuccessAward", False, {}], setAttrDict=setAttrDict):
+            continue
+        notifyAwardList.append([itemID, itemCount, isAuctionItem])
+        appointInfo[itemID] = appointID
+    ItemControler.NotifyGiveAwardInfo(curPlayer, notifyAwardList, "SuccessAward", dataEx={"appointInfo":appointInfo})
     return
 
 def SyncSuccessInfo(curPlayer, syncTypeCondList=None, isSendZero=False):

--
Gitblit v1.8.0