9715 【后端】【越南】【主干】【BT7】流向记录问题(神装进阶增加记录目标装备ID)
2个文件已修改
7 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipEvolve.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipEvolve.py
@@ -68,7 +68,8 @@
        return
    
    #扣消耗
    ItemCommon.DelCostItem(curPlayer, itemPack, delInfoDict, "EquipEvolve")
    infoDict = {ChConfig.Def_Cost_Reason_SonKey:evolveEquipID}
    ItemCommon.DelCostItem(curPlayer, itemPack, delInfoDict, "EquipEvolve", infoDict)
    
    # 原装备替换成进阶装备
    evolveEquip = ItemControler.GetOutPutItemObj(evolveEquipID, curPlayer=curPlayer)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
@@ -1547,13 +1547,13 @@
        GameWorld.ErrLog("找不到对应货币类型商店出售该物品! itemID=%s,priceType=%s" % (itemID, priceType))
    return ipyData
def DelCostItem(curPlayer, itemPack, delInfoDict, delEvent="ReduceItem"):
def DelCostItem(curPlayer, itemPack, delInfoDict, delEvent="ReduceItem", saveDataDict={}):
    ## 扣除消耗材料, 配置函数使用 GetCostItemIndexList, GetAutoBuyItemNeedGold, DelCostItem
    delItemHasBind = False
    for indexList, delCnt in delInfoDict.values():
        if not indexList:
            continue
        hasBindItem = ReduceItem(curPlayer, itemPack, indexList, delCnt, False, delEvent)
        hasBindItem = ReduceItem(curPlayer, itemPack, indexList, delCnt, False, delEvent, saveDataDict)
        delItemHasBind = True if hasBindItem else delItemHasBind
    return delItemHasBind
#---------------------------------------------------------------------