From c7a87f71a9041bea98c636422eb893f13f0a9843 Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期二, 07 五月 2024 16:27:24 +0800 Subject: [PATCH] 1111 修复物品类型65给自动给货币取物品数量bug; --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py index b44fcc0..c4220d1 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py +++ b/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 -- Gitblit v1.8.0