From 2e892e272f7aea0a7ffbae81e43731c6b20119e6 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 04 八月 2025 10:46:12 +0800
Subject: [PATCH] 121 【武将】武将系统-服务端(竞技场支持进攻、防守阵容)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py
index e0bec23..0a21a01 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py
@@ -88,12 +88,12 @@
openFuncIDList = [openFuncID]
if openFuncIDList:
- needLV, needMagicWeaponIDList, needRealmLV, needMissionIDList = __GetOpenFuncLimit(openFuncIDList)
+ needLV, needMagicWeaponIDList, needRealmLV, needMissionIDList = __GetOpenFuncLimit(curPlayer, openFuncIDList)
if needMagicWeaponIDList:
openFuncIDList.append(ShareDefine.GameFuncID_MagicWeapon)
if needRealmLV:
openFuncIDList.append(ShareDefine.GameFuncID_Official)
- needLV, needMagicWeaponIDList, needRealmLV, needMissionIDList = __GetOpenFuncLimit(openFuncIDList)
+ needLV, needMagicWeaponIDList, needRealmLV, needMissionIDList = __GetOpenFuncLimit(curPlayer, openFuncIDList)
GameWorld.DebugLog("GM处理等级开启功能: openFuncID=%s,openFuncIDList=%s,needLV=%s" % (openFuncID, openFuncIDList, needLV), curPlayer.GetPlayerID())
@@ -122,8 +122,8 @@
GameFuncComm.DoFuncOpenLogic(curPlayer, needMissionIDList)
return
-def __GetOpenFuncLimit(openFuncIDList):
- maxLV = IpyGameDataPY.GetFuncCfg("PlayerMaxLV")
+def __GetOpenFuncLimit(curPlayer, openFuncIDList):
+ maxLV = PlayerControl.GetPlayerMaxLV(curPlayer)
needLV = 0
needRealmLV = 0
needMissionIDList = []
@@ -168,7 +168,7 @@
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_GameFuncFirstTouch % keyNum, 0)
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_GameFuncAwardState % keyNum, 0)
- needLV, needMagicWeaponIDList, needRealmLV, needMissionIDList = __GetOpenFuncLimit([])
+ needLV, needMagicWeaponIDList, needRealmLV, needMissionIDList = __GetOpenFuncLimit(curPlayer, [])
for missionID in needMissionIDList:
PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_MissionFinish % missionID, 0)
--
Gitblit v1.8.0