6188 【后端】【1.5.200】诛仙塔爬塔补偿
| | |
| | | Def_ItemType_ZhuXianStuff = 138 # 诛仙材料
|
| | |
|
| | | Def_ItemType_DogzStuff = 139 # 神兽材料
|
| | | Def_ItemType_ZhuXianStone = 140 # 诛仙宝石
|
| | |
|
| | | #以下定义物品类型下次删除
|
| | | Def_Item_Type_Horse = 1000036 #坐骑
|
| | |
| | | Def_VerFix_Pet, # 灵宠等级上限修改,对应技能触发修改;
|
| | | Def_VerFix_AddPoint, # 老号属性点修复;
|
| | | Def_VerFix_GodWeaponItem, # 1.5删除中级神兵石;
|
| | | ) = range(9)
|
| | | Def_VerFix_ZXTower, # 诛仙塔奖励变更补偿;
|
| | | ) = range(10)
|
| | |
|
| | | ##==================================================================================================
|
| | | #游戏消费点类型定义
|
| | |
| | |
|
| | |
|
| | | 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
|
| | |
|