| | |
| | |
|
| | |
|
| | | 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
|
| | |
|