From a4e9d95f1afee7c045a78e1bed3ede1867eb3a87 Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期五, 08 三月 2019 16:33:40 +0800
Subject: [PATCH] 6291 【后端】【2.0】限时仙盟boss

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py |   12 +++++++-----
 1 files changed, 7 insertions(+), 5 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..67b4e12 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/EquipZhuXian.py
@@ -190,6 +190,7 @@
 
 
 def CalcZhuXianAttr(curPlayer):
+    return
     ## 刷新诛仙属性
     playerID = curPlayer.GetPlayerID()
     PyGameData.g_zhuXianSkillAddPerDict.pop(playerID, None)
@@ -244,8 +245,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 +326,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 +337,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 +355,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:
@@ -456,7 +458,7 @@
             PlayerControl.SendMailByKey("DefaultLackSpace", [curPlayer.GetPlayerID()], prizeItemList)
         else:
             for giveItemID, itemCnt in giveItemDict.items():
-                ItemControler.GivePlayerItem(curPlayer, giveItemID, itemCnt, True, [IPY_GameWorld.rptItem], True)
+                ItemControler.GivePlayerItem(curPlayer, giveItemID, itemCnt, 0, [IPY_GameWorld.rptItem])
     
     #通知结果
     packData = ChPyNetSendPack.tagMCZhuXianDecomposeResult()

--
Gitblit v1.8.0