From 599f8638fe57eaf60065c85c8e3c55770c7ec88d Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 07 五月 2024 16:18:46 +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 e8f3ec0..83accd6 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ItemControler.py
@@ -1027,7 +1027,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