xdh
2019-03-13 cdf66410e32ee288d1e3229010544b1a2492ecc1
6345 【后端】【2.0】宗门试炼解锁条件修改
2个文件已修改
19 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MunekadoTrial.py 18 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Event/EventSrc/Operate_EquipStone.py
@@ -95,6 +95,7 @@
def SetEquipIndexStoneIDAndIsBand(curPlayer, equipIndex, holeIndex, changeStoneID, isBind):
    ### 保存装备位孔位宝石ID和绑定信息
    isBind = 0 #现绑定无用,默认存0
    PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_EquipPartStoneID % (equipIndex, holeIndex),
                                       changeStoneID * ChConfig.Def_Stone_SaveStoneInfoXNumber + isBind) 
    return
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GameWorldLogic/FBProcess/GameLogic_MunekadoTrial.py
@@ -36,6 +36,8 @@
import NPCCommon
import FBHelpBattle
import PlayerActLogin
import PlayerPet
import PlayerHorse
import math
@@ -119,12 +121,16 @@
#  @param tick 时间戳
#  @return 布尔值
def OnEnterFBEvent(curPlayer, mapID, lineID, tick):
    if lineID == 0:
        return True
    historyStar = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID-1, False, [mapID])
    needStar = IpyGameDataPY.GetFuncCfg('MunekadoLockLimit')
    if historyStar < needStar:
        GameWorld.DebugLog('    上一层评级未达到%s,无法挑战本层!' % needStar)
    if lineID != 0:
        historyStar = GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_PlayerFBStar_MapId, lineID-1, False, [mapID])
        needStar = IpyGameDataPY.GetFuncCfg('MunekadoLockLimit')
        if historyStar < needStar:
            GameWorld.DebugLog('    上一层评级未达到%s,无法挑战本层!' % needStar)
            return False
    #坐骑与灵宠总等级
    needSumLV = IpyGameDataPY.GetFuncEvalCfg('MunekadoLockLimit', 2, {}).get(lineID, 0)
    if PlayerPet.GetTotalPetLV(curPlayer) + PlayerHorse.GetHorseSumLV(curPlayer) < needSumLV:
        GameWorld.DebugLog('    坐骑与灵宠总等级未达到%s,无法挑战本层!' % needSumLV)
        return False
    return True