|
@@ -101,35 +101,34 @@ class Info_UserBase extends Object_ext {
|
|
|
* @var type
|
|
|
*/
|
|
|
public $animation = 0;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 首充奖励是否领取过首充奖励是否领取过
|
|
|
* @var type
|
|
|
*/
|
|
|
public $fRechargePriceReceived = 0;
|
|
|
-
|
|
|
+
|
|
|
/**
|
|
|
* 洗练石
|
|
|
* @var type
|
|
|
*/
|
|
|
public $xilianStone = 0;
|
|
|
-
|
|
|
+
|
|
|
public function initialize() {
|
|
|
// my_Assert(GameConfig::primordial_data(), "找不到账号初始化数据"); # 防御
|
|
|
- $this->gold = 1000000;
|
|
|
- $this->cash = 5000;
|
|
|
+ $this->gold = glc()->Init_Player_gold;
|
|
|
+ $this->cash = glc()->Init_Player_cash;
|
|
|
$this->xp = 0;
|
|
|
$this->tili = GameConfig::globalsettings()->tili_RecoverrMax; # 恢复体力上限
|
|
|
$this->maxXp = GameConfig::player_level_getItem(2)->xp_need;
|
|
|
-
|
|
|
+
|
|
|
$this->level = 1;
|
|
|
$this->name = '';
|
|
|
|
|
|
-
|
|
|
$this->img = "";
|
|
|
-
|
|
|
+
|
|
|
$heroMo = GameConfig::hero_getItem(1);
|
|
|
- $this->headImg = $heroMo->img;
|
|
|
+ $this->headImg = $heroMo->img;
|
|
|
}
|
|
|
|
|
|
// <editor-fold defaultstate="collapsed" desc=" 方法 ">
|
|
@@ -228,7 +227,7 @@ class Info_UserBase extends Object_ext {
|
|
|
* @param type $amt
|
|
|
*/
|
|
|
function Add_Cash($amt) {
|
|
|
- my_Assert($amt >= 0, "amt值为负");
|
|
|
+ my_Assert($amt >= 0, "amt值为负");
|
|
|
$this->cash += $amt;
|
|
|
}
|
|
|
|
|
@@ -244,7 +243,7 @@ class Info_UserBase extends Object_ext {
|
|
|
return true;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
TaskProc::OnConsumeCashNum($amt);
|
|
|
return false;
|
|
|
}
|
|
@@ -254,7 +253,7 @@ class Info_UserBase extends Object_ext {
|
|
|
* @param int $amt
|
|
|
*/
|
|
|
function Add_Exp($amt) {
|
|
|
- my_Assert($amt >= 0, "amt值为负");
|
|
|
+ my_Assert($amt >= 0, "amt值为负");
|
|
|
$cfgLVs = GameConfig::player_level();
|
|
|
|
|
|
$this->xp += $amt;
|
|
@@ -274,7 +273,6 @@ class Info_UserBase extends Object_ext {
|
|
|
break;
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
}
|
|
|
|
|
|
//
|