From b961d09f3d47773bc0ae6faaeda880ef4791419f Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期二, 12 三月 2019 09:53:37 +0800
Subject: [PATCH] 6307 【后端】【2.0】多套装备开发单(强化配置修改)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py            |    6 +++---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py |   10 ++--------
 2 files changed, 5 insertions(+), 11 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
index 3392315..16da2fa 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/ChEquip.py
@@ -1010,12 +1010,12 @@
 # 获取装备的强化类型
 def GetEquipPlusType(curEquip):
     equipPlace = curEquip.GetEquipPlace()
-    plusTypeDict = IpyGameDataPY.GetFuncEvalCfg("StrengthenLevelLimit", 2)
+    plusTypeDict = IpyGameDataPY.GetFuncEvalCfg("StrengthenLevelLimit", 1)
     if not plusTypeDict:
         GameWorld.ErrLog("没有强化类型映射表")
-        return -1
+        return
     
-    return plusTypeDict.get(equipPlace, -1)
+    return plusTypeDict.get(equipPlace)
 
 
 #  获取满套装化的最低阶数,如5件套,4件5级,1件3级,则返回3
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
index d9b15b3..638c549 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Item/UseItem/ItemCommon.py
@@ -1926,15 +1926,9 @@
 #  @param itemType: 物品类型
 #  @return 最大星级,0为不可强化
 def GetItemMaxPlusLV(curPlayer, equipPackindex, curItem):
-    equipPlace = curItem.GetEquipPlace()
-    plusMaxTypeDict = IpyGameDataPY.GetFuncEvalCfg("StrengthenLevelLimit", 1)
-    if not plusMaxTypeDict:
-        GameWorld.ErrLog("GetItemMaxPlusLV没有强化类型映射表")
+    findType = ChEquip.GetEquipPlusType(curItem)
+    if not findType:
         return 0
-    
-    if equipPlace not in plusMaxTypeDict:
-        return 0
-    findType = plusMaxTypeDict[equipPlace]
     equipStar = ChEquip.GetEquipPartStarByRank(curPlayer, equipPackindex, curItem)
     ipyData = IpyGameDataPY.GetIpyGameDataNotLog("ItemPlusMax", findType, equipStar)
     if ipyData:

--
Gitblit v1.8.0