From c077942390adf47b144205e84e6a9217bc300093 Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期四, 30 八月 2018 10:51:45 +0800 Subject: [PATCH] fix:3063 【后端】仙盟宴会增加显示前三名实时排名以及实时答题王 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py index 0d53221..17efc16 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_FamilyParty.py @@ -26,7 +26,7 @@ import GameWorldProcess import PlayerFairyCeremony import EventReport - +import PyGameData #当前副本地图的状态 @@ -194,6 +194,8 @@ elif fbStep == FB_Step_Fighting: if not FBCommon.GetFBFuncOpenState(ChConfig.Def_FBMapID_FamilyParty): GiveJoinPrize() + FBCommon.NotifyCopyMapPlayerFBHelp(tick, DoFBHelp, 0) + PyGameData.g_familyPartyInfo = [] FBCommon.SetFBStep(FB_Step_Over, tick) FBCommon.DoLogic_FBKickAllPlayer() GameWorldProcess.CloseFB(tick) @@ -323,9 +325,15 @@ hasCollect = gameWorld.GetGameWorldDictByKey(FBPlayerDict_HasCollect%playerID) getCnt = gameWorld.GetGameWorldDictByKey(ChConfig.Map_Player_AreaReward_GetCnt%playerID) isFull = 1 if getCnt >= IpyGameDataPY.GetFuncCfg('FamilyPartyAreaAward', 3) else 0 - - helpDict = {FBCommon.Help_exp:exp, FBCommon.Help_expPoint:expPoint,FBCommon.Help_score:totalPoint, "hasCollect":hasCollect, "isFullExp":isFull} + if PyGameData.g_familyPartyInfo: + rankList = [] + for i, info in enumerate(PyGameData.g_familyPartyInfo[0], 1): + rankList.append({"rank":i, "name":info[1], "cnt":info[2]}) + helpDict['familyPartyRank'] = rankList + helpDict['familyPartyTop'] = {'name':PyGameData.g_familyPartyInfo[1], "cnt":PyGameData.g_familyPartyInfo[2]} + + GameWorld.DebugLog("DoFBHelp %s" % helpDict, playerID) FBCommon.Notify_FBHelp(curPlayer, helpDict) return -- Gitblit v1.8.0