Обращение к банковским средствам через геттер.

This commit is contained in:
lopar 2020-10-28 14:33:50 +02:00
parent 687e65f251
commit 6d9f314e1b
1 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ class UserInfo extends User
$this->experience . '<br>' .
$this->free_stat_points . '<br>' .
$this->money . '<br>' .
$this->Bank->money;
$this->Bank->getMoney();
}
$nameString = '';
if ($this->align) {
@ -139,7 +139,7 @@ class UserInfo extends User
if ($this->watcherIsAdmin) {
$this->Bank = new Bank($this->id);
$infoString = '<br><span>ИД Игрока: %s<br> ИД Комнаты: %s<br> Деньги: %s<br> Деньги в банке: %s<br> Опыт: %s<br> Нераспределённые очки: %s<br> Текущая сессия: %s</span>';
echo sprintf($infoString, $this->id, $this->room, $this->money, $this->Bank->money, $this->experience, $this->free_stat_points, $this->session_id);
echo sprintf($infoString, $this->id, $this->room, $this->money, $this->Bank->getMoney(), $this->experience, $this->free_stat_points, $this->session_id);
}
$this->UserLogs = new UserLogModel($this->id);
echo '<div class="secret-info-user-log"><b>Личное дело</b><br>';