From d74ffd4e91154ea48d36b7ea153907b171c47b74 Mon Sep 17 00:00:00 2001
From: hxp <ale99527@vip.qq.com>
Date: 星期一, 06 五月 2024 18:31:35 +0800
Subject: [PATCH] 10033 【后端】仙树升级系统及砍树产出规则(仙树等级前后端统一:从1开始,1代表1级;)
---
ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py
index 6d49fa3..117b8ac 100644
--- a/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py
+++ b/ServerPython/ZoneServerGroup/map1_8G/MapServer/MapServerData/Script/Player/PlayerCutTree.py
@@ -35,6 +35,9 @@
import time
def OnPlayerLogin(curPlayer):
+ treeLV = curPlayer.NomalDictGetProperty(ChConfig.Def_PDict_TreeLV)
+ if not treeLV:
+ PlayerControl.NomalDictSetProperty(curPlayer, ChConfig.Def_PDict_TreeLV, 1)
RefreshTreeLVUPTime(curPlayer)
SyncTreeInfo(curPlayer)
return
--
Gitblit v1.8.0