xdh
2018-09-28 54c8b15218929d0f8ccd04124144f9fe5ba6e4a7
1 去除无用旧代码
4个文件已修改
32 ■■■■■ 已修改文件
ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py 16 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/CoreServerGroup/GameServer/Script/ShareDefine.py
@@ -821,9 +821,6 @@
) = range(1, 4)
#无限飞buff id--->新手体验VIPBUFF
Def_FreedomTransBuffID = 11503
#区域类型定义, 从5开始, C++定义到 IPY_GameWorld.gatMax 4
(
gatManor, # 领地区域, 领地战期间可PK, 反之为普通区域
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/ChPlayer.py
@@ -4390,16 +4390,6 @@
        PlayerControl.NotifyCode(curPlayer, "04BBF813-7A30-47A8-927DE1ACCC4F378E")
        return
#===============================================================================
#    isFreedomTransBuff = SkillCommon.GetPlayerBuffBySkillTypeID(curPlayer, ShareDefine.Def_FreedomTransBuffID)
#    if not PlayerControl.IsPlayerInFight(curPlayer):
#
#        if (transportType == ChConfig.Def_Transport_Type_BigMap) or (not isFreedomTransBuff):
#            #传送支付处理
#
#            if not PayForTransport(curPlayer, transportType, isAutoBuy):
#                return
#===============================================================================
    #是任务传送,VIP等级不够,且传送符不足,不处理
    if transportType == ChConfig.Def_Transport_Type_Mission and \
       not TransportVipLvRestrict(curPlayer, transportType) and \
@@ -4501,12 +4491,6 @@
#  @param transportType 传送类型
#  @return 是否vip等级限制
def TransportVipLvRestrict(curPlayer, transportType):
    #大地图标记传送不能体验无限飞buff功能
    if transportType != ChConfig.Def_Transport_Type_BigMap:
        if SkillCommon.GetPlayerBuffBySkillTypeID(curPlayer, ShareDefine.Def_FreedomTransBuffID):
            #有无限飞buff
            return True
    return PlayerVip.GetPrivilegeValue(curPlayer, ChConfig.VIPPrivilege_FreeTransport)
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerState.py
@@ -572,16 +572,6 @@
        posX = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_TransPosX)
        posY = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_TransPosY)
        
        #执行逻辑,应该在入口设置好消耗,这边只是扣除
        #=======================================================================
        # isFreedomTransBuff = SkillCommon.GetPlayerBuffBySkillTypeID(curPlayer, ShareDefine.Def_FreedomTransBuffID)
        # if transportType == ChConfig.Def_Transport_Type_BigMap or not isFreedomTransBuff:
        #    isAutoBuy = curPlayer.GetDictByKey(ChConfig.Def_PlayerKey_TransAutoBuyItem)
        #    #传送支付处理
        #    if not ChPlayer.PayForTransport(curPlayer, transportType, isAutoBuy):
        #        return
        #=======================================================================
        if not TransCostAfterPrepare(curPlayer):
            return
        
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ShareDefine.py
@@ -821,9 +821,6 @@
) = range(1, 4)
#无限飞buff id--->新手体验VIPBUFF
Def_FreedomTransBuffID = 11503
#区域类型定义, 从5开始, C++定义到 IPY_GameWorld.gatMax 4
(
gatManor, # 领地区域, 领地战期间可PK, 反之为普通区域