From f460b6035d693dd40c361f7c289c5dac2a2a32a1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期二, 16 十月 2018 16:30:12 +0800
Subject: [PATCH] 4201 【主干】【后端】新增战斗力参数:移动速度百分比
---
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