From fc5ed734678ca2e3490cba411db5bbdd5c98c773 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期四, 20 九月 2018 16:06:15 +0800
Subject: [PATCH] 2615 【后端】神兽强化功能修改
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
index 3d558a4..841870d 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerDogz.py
@@ -370,7 +370,7 @@
delItemList = []
dogzItemPack = curPlayer.GetItemManager().GetPack(ShareDefine.rptDogzItem)
dogzItemPackCount = dogzItemPack.GetCount()
- for i in indexList:
+ for listIndex, i in enumerate(indexList):
if i < 0 or i >= dogzItemPackCount:
GameWorld.ErrLog("神兽背包索引不存在,无法强化!i=%s" % (i), playerID)
return
@@ -383,7 +383,7 @@
GameWorld.ErrLog("神兽背包物品无经验效果,无法强化!i=%s,itemID=%s" % (i, curItem.GetItemTypeID()), playerID)
return
- delCount = max(1, min(curItem.GetCount(), indexUseCountList[i]))
+ delCount = max(1, min(curItem.GetCount(), indexUseCountList[listIndex]))
baseExp = effect.GetEffectValue(0)
doubleCostGold = effect.GetEffectValue(1)
--
Gitblit v1.8.0