From 623442b524137821ea6abb1b429660a9a107b364 Mon Sep 17 00:00:00 2001
From: hch <305670599@qq.com>
Date: 星期四, 31 一月 2019 19:27:01 +0800
Subject: [PATCH] 6118 【后端】【1.5.200】新增技能效果-- 宠物技能-宠物主人受到暴击伤害时触发技能 - 效果填写错误
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoat.py | 15 +++++++++++----
1 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoat.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoat.py
index 0aac70e..b72d16e 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoat.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCoat.py
@@ -110,7 +110,7 @@
continue
eatItemID = eatItem.GetItemTypeID()
if eatItemID != ItemIDList[i]:
- GameWorld.Log('时装分解 发的物品ID不对应index=%s eatItemID=%s,ItemIDList[i]=%s'%(index, eatItemID, ItemIDList[i]))
+ GameWorld.Log('时装分解 发的物品ID不对应index=%s eatItemID=%s,ItemIDList[i]=%s'%(index, eatItemID, ItemIDList[i]), playerID)
continue
itemData = GameWorld.GetGameData().GetItemByTypeID(eatItemID)
if not itemData:
@@ -127,7 +127,7 @@
addExp += itemCnt * curEff.GetEffectValue(1)
ItemCommon.DelItem(curPlayer, eatItem, itemCnt, True, ChConfig.ItemDel_CoatDecompose)
if not addExp:
- GameWorld.Log(' 时装分解, 没有可分解的ItemIDList=%s'%ItemIDList)
+ GameWorld.Log(' 时装分解, 没有可分解的ItemIDList=%s'%ItemIDList, playerID)
return
totalExp = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ClothesChestEXP) + addExp
curChestLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ClothesChestLV)
@@ -170,6 +170,13 @@
continue
for attrID, attrValue in starAttrDict[str(skinLV)].items():
PlayerControl.CalcAttrDict_Type(int(attrID), attrValue, allAttrList)
+ #时装柜属性
+ curChestLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_ClothesChestLV)
+ ipyData = IpyGameDataPY.GetIpyGameDataNotLog('CoatChestUp', curChestLV)
+ if ipyData:
+ for attrID, attrValue in ipyData.GetAddAttr().items():
+ PlayerControl.CalcAttrDict_Type(int(attrID), attrValue, allAttrList)
+
# 保存计算值
PlayerControl.SetCalcAttrListValue(curPlayer, ChConfig.Def_CalcAttrFunc_Coat, allAttrList)
return
@@ -231,7 +238,7 @@
if isOK:
if desBackPack == IPY_GameWorld.rptEquip:
packIndex = IPY_GameWorld.rptEquip
- itemPlace = IPY_GameWorld.retClothesCoat
+ itemPlace = destIndex
itemPack = curPlayer.GetItemManager().GetPack(packIndex)
curItem = itemPack.GetAt(itemPlace)
itemId = curItem.GetItemTypeID()
@@ -245,7 +252,7 @@
itemPack = curPlayer.GetItemManager().GetPack(packIndex)
curItem = itemPack.GetAt(0)
if curItem:
- curPlayer.Sync_UnEquipItem(curItem.GetItemTypeID(), IPY_GameWorld.retClothesCoat)
+ curPlayer.Sync_UnEquipItem(curItem.GetItemTypeID(), srcIndex)
GameWorld.DebugLog("SwitchCoat isOK=%s" % isOK)
return True
--
Gitblit v1.8.0