xdh
2019-01-10 490aeb49ba64a080efbca0a884c9c6cdd8dcf8a2
5740 境界(还原)
2个文件已修改
30 ■■■■■ 已修改文件
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py 27 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/ChConfig.py
@@ -4524,8 +4524,7 @@
Def_VerFix_Horse, # 坐骑等级上限修改,对应技能触发修改;
Def_VerFix_Pet, # 灵宠等级上限修改,对应技能触发修改;
Def_VerFix_AddPoint, # 老号属性点修复;
Def_VerFix_ReamlvFix, # 老号境界等级变更;
) = range(9)
) = range(8)
##==================================================================================================
#游戏消费点类型定义
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -47,32 +47,7 @@
#        DoRealmLVUpLogic(curPlayer)
    return True
def OnLogin(curPlayer):
    if not GameWorld.GetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ReamlvFix):
        GameWorld.SetDictValueByBit(curPlayer, ChConfig.Def_Player_Dict_VersionFix, ChConfig.Def_VerFix_ReamlvFix, 1)
        #计算老号当前境界修行点--折算修行点对应新境界--弥补多余修行点
        oldRealmLV = curPlayer.GetOfficialRank()
        if oldRealmLV:
            givePoint = IpyGameDataPY.GetFuncEvalCfg('ReRealm', 1, {}).get(oldRealmLV, 0)
            newRealmLV = 0
            ipyMgr = IpyGameDataPY.IPY_Data()
            maxRealmLV = ipyMgr.GetRealmByIndex(ipyMgr.GetRealmCount()-1).GetLv()
            for lv in xrange(maxRealmLV):
                ipyData = GetRealmIpyData(lv)
                if not ipyData:
                    break
                needPoint = ipyData.GetNeedPoint()
                if givePoint < needPoint:
                    break
                givePoint -= needPoint
                newRealmLV = lv + 1
            if newRealmLV > 0:
                curPlayer.SetOfficialRank(newRealmLV-1)
                DoRealmLVUpLogic(curPlayer, False)
            PlayerControl.SendMailByKey('ReRealm', [curPlayer.GetID()], [(ChConfig.Def_ItemID_RealmPoint, givePoint, 1)], [newRealmLV, givePoint])
            GameWorld.Log('老号境界处理 oldRealmLV=%s,newRealmLV=%s,givePoint=%s'%(oldRealmLV, newRealmLV, givePoint), curPlayer.GetID())
def OnLogin(curPlayer):
    SyncRealmFBState(curPlayer)
    return