From a7ab0247c7b8eff06ad104bee39bc035384ca43e Mon Sep 17 00:00:00 2001 From: hxp <ale99527@vip.qq.com> Date: 星期三, 23 七月 2025 12:08:22 +0800 Subject: [PATCH] 80 【常规】背包-服务端(增加背包购买格子;) --- 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