From 72afa76c0e4b3df8feccc27164234bd2c5bd2769 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期日, 30 九月 2018 16:48:13 +0800
Subject: [PATCH] 4008 【后端】【主干】【1.0.18】装备位8,9,10的装备阶数对应最大洗炼等级与其他装备位分开配置

---
 ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)

diff --git a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
index 91bff20..d22603a 100644
--- a/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
+++ b/ServerPython/CoreServerGroup/GameServer/Script/Player/PlayerControl.py
@@ -31,6 +31,7 @@
 import GameWorld
 import IPY_GameServer
 import MergeBroadcast
+import IpyGameDataPY
 import ShareDefine
 import ChConfig
 import types
@@ -315,3 +316,12 @@
     sysMsg = '%s'%([actionid, addCnt])
     curPlayer.MapServer_QueryPlayerResult(0, 0, "AddFamilyActivity", sysMsg, len(sysMsg))
     return
+
+## 获取功能限制等级(等级条件为全局)
+def GetFuncLimitLV(funcID):
+    ipyData = IpyGameDataPY.GetIpyGameData("FuncOpenLV", funcID)
+    if not ipyData:
+        return 0
+    
+    return ipyData.GetLimitLV()
+

--
Gitblit v1.8.0