| | |
| | | # ShareDefine.GameFuncID_Pet:lambda curObj:PlayerPet.DoLVUPLogic_Pet(curObj),
|
| | | # }
|
| | |
|
| | | # 功能开启需要同步到GameServer的
|
| | | FuncOpenNotifyGameServer = [ShareDefine.GameFuncID_Championship, ShareDefine.GameFuncID_MineArea]
|
| | |
|
| | | def GetFuncOpenLVIpyData(funcID): return IpyGameDataPY.GetIpyGameData("FuncOpenLV", funcID)
|
| | |
|
| | | def DoFuncOpenLogic(curPlayer, finishMissionIDList=[]):
|
| | |
| | |
|
| | | 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))
|
| | | |
| | | PlayerActTask.OnCheckRelateFuncAct(curPlayer, openFuncIDList)
|
| | | PlayerActLoginNew.OnCheckRelateFuncAct(curPlayer, openFuncIDList)
|
| | | PlayerActBuyCountGift.OnCheckRelateFuncAct(curPlayer, openFuncIDList)
|