237 【福利内容】每日任务/每周任务/章节奖励-服务端(英雄之路支持给定制物品: 成就系统)
1个文件已修改
18 ■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerSuccess.py 18 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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):