From 545986a8fdde345b28cf3004be84c6cfe79a3dc1 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期五, 19 四月 2019 11:29:12 +0800
Subject: [PATCH] 6459 【后端】【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