From a984223d7a68ebd6596251e43f97903e6bfd395f Mon Sep 17 00:00:00 2001 From: xdh <xiefantasy@qq.com> Date: 星期一, 29 十月 2018 11:13:42 +0800 Subject: [PATCH] 4395 【1.1】【1.2】增加境界升级流向 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py | 11 +++-------- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py | 6 +++--- 2 files changed, 6 insertions(+), 11 deletions(-) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py index 07fd85f..72fa8a1 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/DataRecordPack.py @@ -1571,9 +1571,6 @@ return ## 玩家上线成就检查 -# @param tagObjType: 攻击方类型 -# @param tagObj: 攻击方ID -# @param mapID: 死亡玩家所在地图ID # @return def DR_CheckOldPlayerSuccess(curPlayer): dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), @@ -1584,13 +1581,11 @@ return ## 玩家境界升级 -# @param tagObjType: 攻击方类型 -# @param tagObj: 攻击方ID -# @param mapID: 死亡玩家所在地图ID # @return -def DR_RealmLVUp(curPlayer, realmlv, realmPoint): +def DR_RealmLVUp(curPlayer, realmlv, realmPoint, needRealmPoint): dataDict = {'PlayerID':curPlayer.GetPlayerID(), "PlayerName":curPlayer.GetPlayerName(), - 'AccID':curPlayer.GetAccID(), 'realmlv':realmlv, 'realmPoint':realmPoint} + 'AccID':curPlayer.GetAccID(), 'realmlv':realmlv, 'curRealmPoint':realmPoint, 'costRealmPoint':needRealmPoint, + 'playerlv':curPlayer.GetLV(), 'power':curPlayer.GetFightPower()} #发送封包 SendEventPack("RealmLVUp", dataDict, curPlayer) diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py index 9302651..8628949 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py @@ -186,9 +186,9 @@ curPlayer.SetOfficialRank(nextRealmLv) PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmFBIsOpen, 0) realmPoint = PlayerControl.GetMoney(curPlayer, ShareDefine.TYPE_Price_RealmPoint) - DataRecordPack.DR_RealmLVUp(curPlayer, nextRealmLv, realmPoint) - #realmIpyData = GetRealmIpyData(curRealmLV) - #if realmIpyData and realmIpyData.GetIsBigRealm(): + realmIpyData = GetRealmIpyData(curRealmLV) + needRealmPoint = realmIpyData.GetNeedPoint() if realmIpyData else 0 + DataRecordPack.DR_RealmLVUp(curPlayer, nextRealmLv, realmPoint, needRealmPoint) PlayerControl.WorldNotify(0, 'RealmUpSuccess', [curPlayer.GetName(), nextRealmLv]) RefreshOfficialAttr(curPlayer) GameFuncComm.DoFuncOpenLogic(curPlayer) -- Gitblit v1.8.0