9701 【后端】【越南】【BT7】【主干】跨服竞技64位排位赛(GameServer支持功能开启判断;排位相关封包通知仅通知功能开启的玩家; 提交冲突)
1个文件已修改
14 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameFuncComm.py 14 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/GameFuncComm.py
@@ -38,6 +38,7 @@
import PlayerSignDay
import PlayerGoldGift
import PlayerEquipDecompose
import PlayerCrossChampionship
import PlayerFreeGoods
import FunctionNPCCommon
import PlayerGreatMaster
@@ -71,6 +72,7 @@
                     ShareDefine.GameFuncID_Arena:lambda curObj:PlayerArena.DoArenaOpen(curObj),
                     ShareDefine.GameFuncID_FaQi:lambda curObj:PlayerFaQi.DoFaQiOpen(curObj),
                     ShareDefine.GameFuncID_LianTi:lambda curObj:PlayerLianTi.DoLianTiOpen(curObj),
                     ShareDefine.GameFuncID_Championship:lambda curObj:PlayerCrossChampionship.DoChampionshipOpen(curObj),
                     #ShareDefine.GameFuncID_RunDaily:lambda curObj:FBCommon.DoFuncOpen_RunDaily(curObj),
                     #ShareDefine.GameFuncID_RunFamily:lambda curObj:FBCommon.DoFuncOpen_RunFamily(curObj),
                     #ShareDefine.GameFuncID_RefineExp:lambda curObj:Operate_PlayerBuyZhenQi.DoFuncOpen_RefineExp(curObj),
@@ -87,6 +89,9 @@
#FuncLVUpLogicDict = {
#                     ShareDefine.GameFuncID_Pet:lambda curObj:PlayerPet.DoLVUPLogic_Pet(curObj),
#                     }
# 功能开启需要同步到GameServer的
FuncOpenNotifyGameServer = [ShareDefine.GameFuncID_Championship]
def GetFuncOpenLVIpyData(funcID): return IpyGameDataPY.GetIpyGameData("FuncOpenLV", funcID)
@@ -152,6 +157,15 @@
        
    if openFuncIDList:
        Sync_FuncOpenState(curPlayer, openFuncIDList)
        notifyGameServerFuncIDList = []
        for funcID in openFuncIDList:
            if funcID not in FuncOpenNotifyGameServer:
                continue
            notifyGameServerFuncIDList.append(funcID)
        if notifyGameServerFuncIDList:
            GameWorld.DebugLog("notifyGameServerFuncIDList=%s" % notifyGameServerFuncIDList)
            msgInfo = str(notifyGameServerFuncIDList)
            GameWorld.GetPlayerManager().GameServer_QueryPlayerResult(curPlayer.GetID(), 0, 0, "FuncOpen", msgInfo, len(msgInfo))
    return
## 功能是否可用