From 747c36dbcff579884277e7c3be1ac5c8b3ac93a0 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 31 一月 2019 10:39:03 +0800
Subject: [PATCH] 6105 【后端】【1.5.200】诛仙宝石开发(属性刷新修改)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py
index c55b09d..2f6a274 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py
@@ -244,8 +244,8 @@
else:
PlayerControl.CalcAttrDict_Type(legendAttrID, legendAttrValue, allAttrList)
#宝石属性
- gemlvList = ChEquip.CalcEquipStone_Effect(curPlayer, equipIndex, allAttrListZXStone)
- equipPlaceStoneLVDict[equipIndex] = gemlvList
+ gemlvList = ChEquip.CalcEquipStone_Effect(curPlayer, equipPlace, allAttrListZXStone)
+ equipPlaceStoneLVDict[equipPlace] = gemlvList
# GameWorld.DebugLog("诛仙装备属性: allAttrList=%s" % (allAttrList))
@@ -325,6 +325,7 @@
else:
PlayerControl.CalcAttrDict_Type(suitEffID, suitEffValue, allAttrListZXSuit)
#宝石共鸣属性
+ #GameWorld.DebugLog('equipPlaceStoneLVDict=%s'%equipPlaceStoneLVDict)
needStoneCnt = IpyGameDataPY.GetFuncCfg('GemResonance')
for suitType, placeGroupList in suitPlaceGroupDict.items():
suitType = int(suitType)
@@ -335,7 +336,7 @@
if len(groupStoneLVList) < needStoneCnt:
continue
groupStoneLVList.sort(reverse=True)
- shareStoneLV = min(groupStoneLVList[needStoneCnt:])
+ shareStoneLV = min(groupStoneLVList[:needStoneCnt])
GameWorld.DebugLog(" 激活诛仙宝石共鸣: suitType=%s, shareStoneLV=%s" % (suitType, shareStoneLV))
stoneAttrIpyData = IpyGameDataPY.GetIpyGameData("ZhuXianStoneAttr", suitType, shareStoneLV)
if not stoneAttrIpyData:
@@ -353,7 +354,7 @@
plusEffDict = equipPlaceBaseAttrDict[plusPlace]
#GameWorld.DebugLog(" plusPlace=%s,plusEffDict=%s" % (plusPlace, plusEffDict))
for plusEffID, plusEffValue in plusEffDict.items():
- addValue = int(plusEffValue * (10000 + suitEffValue) / 10000.0)
+ addValue = int(plusEffValue * (10000 + effValue) / 10000.0)
#GameWorld.DebugLog(" plusEffID=%s,plusEffValue=%s,addValue=%s" % (plusEffID, plusEffValue, addValue))
PlayerControl.CalcAttrDict_Type(plusEffID, addValue, allAttrListZXStone)
else:
--
Gitblit v1.8.0