From af2575ee52476f0d87d69a76dca5ee1f58cf114d Mon Sep 17 00:00:00 2001 From: hch <305670599@qq.com> Date: 星期六, 13 四月 2019 10:55:47 +0800 Subject: [PATCH] 6509 子 【2.0】五行灵根 / 【后端】【2.0】五行灵根修改 --- ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py | 18 ++++++++++++++++++ 1 files changed, 18 insertions(+), 0 deletions(-) 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 cde63ee..6774f91 100644 --- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py +++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py @@ -143,6 +143,21 @@ DoRealmLVUpLogic(curPlayer) return +# 提升1级境界加点 +def __DoRealmLVUpAddPoint(curPlayer): + if not GameFuncComm.GetFuncCanUse(curPlayer, ShareDefine.GameFuncID_AddPoint): + # 未开启前不可加点,因为DoAddPointOpen会一次性补齐,避免意外情况多加了点数 + return + + curFreePoint = curPlayer.GetFreePoint() + addPoint = IpyGameDataPY.GetFuncCfg("LVUPAddPoint", 3) + if addPoint != 0: + setFreePoint = curFreePoint + addPoint + DataRecordPack.DR_Freepoint(curPlayer, "RealmLVUp", addPoint) + curPlayer.SetFreePoint(setFreePoint) + + return + def DoRealmLVUpLogic(curPlayer, needSys=True): curRealmLV = curPlayer.GetOfficialRank() @@ -153,6 +168,9 @@ return curPlayer.SetOfficialRank(nextRealmLv) + # 提升1级境界加点 + __DoRealmLVUpAddPoint(curPlayer) + PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmFBIsOpen, 0) if needSys: addBuffID = nextRealmIpyData.GetBuffID() -- Gitblit v1.8.0