cyzhao 1 жил өмнө
parent
commit
f8c032ed2f

+ 3 - 2
Gameserver/App/model/User/Info_UserBase.php

@@ -118,9 +118,10 @@ class Info_UserBase extends Object_ext {
 //        my_Assert(GameConfig::primordial_data(), "找不到账号初始化数据");         # 防御
         $this->gold = 1000000;
         $this->cash = 5000;
-//        $this->xp = GameConfig::primordial_data()->User_XP;
+        $this->xp = 0;
         $this->tili = GameConfig::globalsettings()->tili_RecoverrMax;           # 恢复体力上限
-//        $this->maxXp = 0;
+        $this->maxXp = GameConfig::player_level_getItem(1)->xp_need;
+        
         $this->level = 1;
         $this->name = '';