| | |
| | |
|
| | |
|
| | | 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
|
| | |
|
| | |
| | | ttInfo = ChPyNetSendPack.tagMCZhuXianTowerInfo()
|
| | | ttInfo.Clear()
|
| | | ttInfo.Floor = __GetZhuXianTowerCurPassLV(curPlayer)
|
| | | ttInfo.LastFloor = curPlayer.NomalDictGetProperty(ChConfig.Def_Player_Dict_ZhuXianTowerLastFloor)
|
| | | NetPackCommon.SendFakePack(curPlayer, ttInfo)
|
| | | return
|
| | |
|
| | |
| | | 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
|
| | |
|
| | | ##副本玩家进入点
|
| | |
| | | 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
|