hch
2019-04-27 da3ac347e89eeb9716815ba875c0d090d1a16cf0
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py
@@ -29,7 +29,7 @@
import ItemCommon
import ChConfig
import ChPlayer
import PlayerSuccess
import PlayerActLogin
import GameWorldProcess
import PlayerBillboard
import EventReport
@@ -88,6 +88,7 @@
    ttInfo = ChPyNetSendPack.tagMCZhuXianTowerInfo()
    ttInfo.Clear()
    ttInfo.Floor = __GetZhuXianTowerCurPassLV(curPlayer)
    ttInfo.LastFloor = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ZhuXianTowerLastFloor)
    NetPackCommon.SendFakePack(curPlayer, ttInfo)
    return
@@ -98,11 +99,11 @@
## 更新当前已通关关卡
def SetZhuXianTowerCurPassLV(curPlayer, passlv):
def SetZhuXianTowerCurPassLV(curPlayer, passlv, costSeconds=0):
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ZhuXianTowerPassLV, passlv)
    #PlayerRune.DoUnlockRuneHole(curPlayer)
    #PlayerWeekParty.AddWeekPartyActionCnt(curPlayer, ChConfig.Def_WPAct_Tower, passlv, False)
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ZhuXianTowerCostTime, costSeconds)
    #更新诛仙塔排行榜
    PlayerBillboard.UpdateZhuXianTowerBillboard(curPlayer)
    GameWorld.DebugLog(' 更新诛仙塔已通关数 %s' % passlv)
    return
@@ -136,8 +137,10 @@
    gameFB = GameWorld.GetGameFB()
    fbStep = gameFB.GetFBStep()
    curStar = gameFB.GetGameFBDictByKey(FBDict_FBStar)
    if curStar != Def_MaxStar and fbStep == FB_State_FreeTime:
        FBCommon.UpdateFBEnterTick(curPlayer)
    hasPass = gameFB.GetGameFBDictByKey(FBDict_HasPass)
    if fbStep == FB_State_FreeTime: #失败或非S通关需要加cd
        if curStar != Def_MaxStar or not hasPass:
            FBCommon.UpdateFBEnterTick(curPlayer)
    return
##副本玩家进入点
@@ -341,6 +344,11 @@
    FBCommon.Sync_Player_TimeTick(IPY_GameWorld.tttWaitStart, prepareTick)
    FBCommon.SetFBStep(FB_State_FightPrepare, tick)
    lastFloor = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ZhuXianTowerLastFloor)
    if fbLevel != lastFloor:
        PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_Player_Dict_ZhuXianTowerLastFloor, fbLevel)
        SyncZhuXianLevelInfo(curPlayer) # 同步信息
    DoFBHelp(curPlayer, tick)
    GameWorld.DebugLog("StartFBLevel, fbLevel=%s,totalHP=%s" % (fbLevel, totalHP), curPlayer.GetPlayerID())
    return
@@ -414,9 +422,8 @@
    isFirstS = 0
    if fbLevel != __GetZhuXianTowerCurPassLV(curPlayer) and curStar == Def_MaxStar:
        #更新关卡
        SetZhuXianTowerCurPassLV(curPlayer, fbLevel)
        #更新诛仙塔排行榜
        PlayerBillboard.UpdatePlayerBillboard(curPlayer, ShareDefine.Def_BT_ZhuXianTower, fbLevel, 10000-costTime/1000)
        SetZhuXianTowerCurPassLV(curPlayer, fbLevel, costTime/1000)
        isFirstS = 1  #是否首次S通关
    gameFB.SetGameFBDict(FBDict_isFirstS, isFirstS)
    
@@ -485,6 +492,7 @@
        
    gameFB.SetGameFBDict(FBDict_HasGiveAward, 1)
    PlayerActLogin.AddLoginAwardActionCnt(curPlayer, ChConfig.Def_LoginAct_ZhuXianTower, 1)
    return