From 789932ab32bbd68518c17050dd5c055dd3896744 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 13 一月 2025 15:53:08 +0800
Subject: [PATCH] 10334 【越南】【英语】【BT】【砍树】境界修改-服务端(初始境界改为1)

---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/RealmLVUP.py    |    2 +-
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py     |    6 +++---
 ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py |    6 ++++--
 3 files changed, 8 insertions(+), 6 deletions(-)

diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py
index 207e56b..e0bec23 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/OpenFunc.py
@@ -113,7 +113,7 @@
         
     GameWorld.DebugLog("GM处理境界开启功能: needRealmLV=%s" % needRealmLV, curPlayer.GetPlayerID())
     if needRealmLV:
-        curPlayer.SetOfficialRank(needRealmLV - 1)
+        curPlayer.SetOfficialRank(max(1, needRealmLV - 1))
         PlayerPrestigeSys.DoRealmLVUpLogic(curPlayer)
         
     GameWorld.DebugLog("GM处理任务开启功能: needMissionIDList=%s" % needMissionIDList, curPlayer.GetPlayerID())
@@ -158,7 +158,7 @@
     ## GM关闭功能
     if not closeFuncID:
         curPlayer.SetLV(1)
-        curPlayer.SetOfficialRank(0)
+        curPlayer.SetOfficialRank(1)
         ipyDataMgr = IpyGameDataPY.IPY_Data()
         for i in xrange(ipyDataMgr.GetTreasureCount()):
             ipyData = ipyDataMgr.GetTreasureByIndex(i)
@@ -191,7 +191,7 @@
         
     limitRealmLV = ipyData.GetLimiRealmLV()
     if limitRealmLV and curPlayer.GetOfficialRank() >= limitRealmLV:
-        curPlayer.SetOfficialRank(max(0, limitRealmLV - 1))
+        curPlayer.SetOfficialRank(max(1, limitRealmLV - 1))
         
     limitMagicWeaponID = ipyData.GetLimitMagicWeapon()
     if limitMagicWeaponID:
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/RealmLVUP.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/RealmLVUP.py
index ee9a05c..362d190 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/RealmLVUP.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/GM/Commands/RealmLVUP.py
@@ -43,7 +43,7 @@
     value = cmdList[0]
     if value == 0:
         reVersionState = cmdList[1] if len(cmdList) > 1 else 0
-        curPlayer.SetOfficialRank(0)
+        curPlayer.SetOfficialRank(1)
         curPlayer.SetFreePoint(0)
         GameWorld.DebugAnswer(curPlayer, "重置境界!")
         GameWorld.DebugAnswer(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 ba72e0c..935ed64 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerPrestigeSys.py
@@ -66,6 +66,8 @@
     SyncRealmFBState(curPlayer, isAll=True)
     UpdateRealmExp(curPlayer, False)
     NotifyRealmExpInfo(curPlayer)
+    if not curPlayer.GetOfficialRank():
+        curPlayer.SetOfficialRank(1)
     return
 
 def DoRealmVersionStateLogic(curPlayer):
@@ -76,14 +78,14 @@
         return
     PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_RealmVersionState, 1)
     realmLV = curPlayer.GetOfficialRank()
-    if not realmLV:
+    if realmLV <= 1:
         # 新号不处理
         return
     playerID = curPlayer.GetPlayerID()
     GameWorld.Log("======================== 执行境界版本变更重置逻辑 =======================", playerID)
     
     # 重置境界
-    curPlayer.SetOfficialRank(0)
+    curPlayer.SetOfficialRank(1)
     
     # 返还境界丹
     returnItemID = IpyGameDataPY.GetFuncCfg("RealmLvUP", 1)

--
Gitblit v1.8.0