xdh
2019-02-01 8145e33b8bac3d5852d08e3de8128ae8db3a6d4c
6188 【后端】【1.5.200】诛仙塔爬塔补偿
2个文件已修改
26 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_ZhuXianTower.py 22 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -372,6 +372,7 @@
Def_ItemType_ZhuXianStuff = 138 # 诛仙材料
Def_ItemType_DogzStuff = 139 # 神兽材料
Def_ItemType_ZhuXianStone = 140 # 诛仙宝石
#以下定义物品类型下次删除
Def_Item_Type_Horse = 1000036          #坐骑
@@ -4599,7 +4600,8 @@
Def_VerFix_Pet, # 灵宠等级上限修改,对应技能触发修改;
Def_VerFix_AddPoint, # 老号属性点修复;
Def_VerFix_GodWeaponItem, # 1.5删除中级神兵石;
) = range(9)
Def_VerFix_ZXTower, # 诛仙塔奖励变更补偿;
) = range(10)
##==================================================================================================
#游戏消费点类型定义
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