hxp
2019-02-12 4551dd1308ab484688ca96be2be8b811fd3a23e6
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py
@@ -78,6 +78,28 @@
def OnFBPlayerOnLogin(curPlayer):
    if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ZXTower):
        GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ZXTower, 1)
        #奖励变更补偿 s级通关奖励里的宝石
        curFloor = __GetZhuXianTowerCurPassLV(curPlayer)
        if curFloor:
            giveItemList = []
            for floor in xrange(1, curFloor+1):
                ipyData = GetTowerIpyData(floor)
                if not ipyData:
                    continue
                for itemInfo in ipyData.GetFirstAward():
                    itemID = itemInfo[0]
                    itemData = GameWorld.GetGameData().GetItemByTypeID(itemID)
                    if not itemData:
                        continue
                    if itemData.GetType() == ChConfig.Def_ItemType_ZhuXianStone:
                        giveItemList.append(itemInfo)
            if giveItemList:
                PlayerControl.SendMailByKey('KillGodTowerCompensation', [curPlayer.GetID()], giveItemList)
    SyncZhuXianLevelInfo(curPlayer)
    return
@@ -137,8 +159,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
##副本玩家进入点