hxp
2024-05-07 c7a87f71a9041bea98c636422eb893f13f0a9843
1111 修复物品类型65给自动给货币取物品数量bug;
1个文件已修改
2 ■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -1025,7 +1025,7 @@
        moneyEventName = ChConfig.Def_GiveMoney_TransformItem # 货币的事件类型,因为传进来的事件类型是物品的
        if tagItem.GetType() == ChConfig.Def_ItemType_AutoUseMoney:
            curEff = tagItem.GetEffectByIndex(0)
            moneyCount = curEff.GetEffectValue(0) * tagItem.GetCount()
            moneyCount = curEff.GetEffectValue(0) * itemCount
            moneyType = curEff.GetEffectValue(1)
            PlayerControl.GiveMoney(curPlayer, moneyType, moneyCount, moneyEventName, addDict)
            return True