From b56df043e01be629f731c5d52ecb64cc7f7f2b60 Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期一, 27 五月 2019 20:05:19 +0800 Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/SnxxServerCode --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_SealDemon.py | 30 +++++++++++++----------------- 1 files changed, 13 insertions(+), 17 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_SealDemon.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_SealDemon.py index db0aae0..3a9d6bf 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_SealDemon.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_SealDemon.py @@ -69,6 +69,12 @@ maxCnt = FBCommon.GetEnterFBMaxCnt(curPlayer, mapID) if enterCnt + 2 > maxCnt: return False + if lineID in newbielineList: + hasEnter = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID, False, + [ChConfig.Def_FBMapID_SealDemon]) + if hasEnter: + GameWorld.DebugLog(" 已进入过该新手线路 %s" % lineID) + return False return True @@ -471,7 +477,7 @@ #for _ in xrange(addCnt): jsonItemList, totalExp, totalMoney = NPCCommon.GiveKillNPCDropPrize(curPlayer, ChConfig.Def_FBMapID_SealDemon, {bossID:addCnt}, mailTypeKey="SealDemonMail", isMail=isMail, prizeMultiple=prizeMultiple, - dropItemMapInfo=dropItemMapInfo) + dropItemMapInfo=dropItemMapInfo,isVirtualDrop=isClientSend) for jsonItem in jsonItemList: if 'UserData' in jsonItem: equipList.append(jsonItem) @@ -573,22 +579,13 @@ if rank == 1: bossID = CurFBLineBOSSID(lineID) NPCCommon.GameServer_KillGameWorldBoss(bossID, curPlayer.GetName(), hurt, False) - - if not prizeItemList: - leaveTick = FBCommon.GetFBLineStepTime(mapID, lineID) * 1000 - GameWorld.Log("没有奖励,直接通知前端结算!mapID=%s,lineID=%s" % (mapID, lineID), curPlayer.GetPlayerID()) - curPlayer.Sync_TimeTick(IPY_GameWorld.tttLeaveMap, 0, leaveTick, True) - overDict = {FBCommon.Over_rank:rank, FBCommon.Over_itemInfo:prizeItemList} - FBCommon.NotifyFBOver(curPlayer, ChConfig.Def_FBMapID_SealDemon, lineID, 1, overDict) - return - - gameFB = GameWorld.GetGameFB() - tick = GameWorld.GetGameWorld().GetTick() - gameFB.SetGameFBDict(FBDict_IsOver, tick) - gameFB.SetPlayerGameFBDict(curPlayer.GetPlayerID(), FBPlayerDict_Rank, rank) - curPlayer.Sync_TimeTick(ChConfig.tttPickupItem, 0, ChConfig.Def_FBPickupItemTime, True) - return + #GameWorld.Log("通知前端结算!mapID=%s,lineID=%s" % (mapID, lineID), curPlayer.GetPlayerID()) + overDict = {FBCommon.Over_rank:rank, FBCommon.Over_itemInfo:prizeItemList} + FBCommon.NotifyFBOver(curPlayer, mapID, lineID, 1, overDict) + PlayerControl.SetCustomMap(curPlayer, 0, 0) + return + def GetBossRemainHPPer(copyMapID, funcLineID, tick): bossID = CurFBLineBOSSID(funcLineID) @@ -642,4 +639,3 @@ packData.OldDouble = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_FMTOldDouble) NetPackCommon.SendFakePack(curPlayer, packData) return - -- Gitblit v1.8.0