From b18f4c3d01b89c7f5c539e28f7780884da952cee Mon Sep 17 00:00:00 2001
From: xdh <xiefantasy@qq.com>
Date: 星期四, 06 十二月 2018 13:50:18 +0800
Subject: [PATCH] 5257 【后端】【1.3】【1.3.100】符印解锁判断优化

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py |   19 ++++---------------
 1 files changed, 4 insertions(+), 15 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py
index 112bad0..8880a52 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerRune.py
@@ -205,21 +205,10 @@
 
 ## 获取符印是否已解锁
 def GetIsOpenByRuneID(curPlayer, itemid):
-    itemData = GameWorld.GetGameData().GetItemByTypeID(itemid)
-    if not itemData:
-        return
-    curPassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_TrialTower_PassLV)
-    curEff = itemData.GetEffectByIndex(0)
-    curRuneType = curEff.GetEffectID()
-    floorCnt = IpyGameDataPY.GetFuncCfg('TowerRuneType', 2)
-    towerRuneTypeDict = IpyGameDataPY.GetFuncEvalCfg('TowerRuneType')
-    floorList = [int(i) for i in towerRuneTypeDict]
-    floorList.sort()
-    for floor in floorList:
-        typeList = towerRuneTypeDict[str(floor)]
-        if curRuneType in typeList:
-            floorkey = (int(floor) - 1)*100+ floorCnt if int(floor) > 1 else 0
-            return curPassLV >= floorkey
+    ipyData = GetRuneIpyData(itemid)
+    if ipyData:
+        curPassLV = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_TrialTower_PassLV)
+        return curPassLV >= ipyData.GetTowerID()
     # 没配置限制层数解锁的默认解锁
     return True
 

--
Gitblit v1.8.0