diff --git a/classes/User.php b/classes/User.php index 79b434a..02bb40d 100644 --- a/classes/User.php +++ b/classes/User.php @@ -24,14 +24,11 @@ class User public $enter_game; public $room; public $block; - + public $shadow; // Пока несуществующие, для совместимости. public $married; - public $stats; - public $shadow; public $experience; public $stat_points; - //Статусы того, кто смотрит на информацию. public $watcher_id; protected $watcherIsAdmin; @@ -49,33 +46,16 @@ class User } } - protected function showItem($item) + private function UserInfoDoll($isBattle = 0) { - $itemSlot = $item['dressed_slot'] ?? 0; - $itemName = $item['name'] ?? ''; - $itemImage = $item['image'] ?? ''; - if ($itemSlot) { - echo << -{$itemName} -SLOT; - } else { - echo << -EMPTY_SLOT; - } - } - - private function UserInfoDoll() { + //https://jsfiddle.net/ngx0yvhc $dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id); while ($row = $dressed_items->fetch_assoc()) { $dressed_item[$row['dressed_slot']] = $row; } - echo ''; + } + + private function UserInfoStats() + { + $captions = 'Уровень:
Сила:
Ловкость:
Интуиция:
Выносливость:
Интеллект:
Мудрость:
Местонахождение:'; + $variables = $this->level . '
' . $this->strength . '
' . $this->dexterity . '
' . $this->intuition . '
' . $this->endurance . '
' . $this->intelligence . '
' . $this->wisdom . '
' . $this->getRoomName($this->room); + echo ''; } private function UserInfo() { - $dressed_items = db::c()->query('SELECT * FROM inventory WHERE owner_id = ?i AND dressed_slot > 0', $this->id); - while ($row = $dressed_items->fetch_assoc()) { - $dressed_item[$row['dressed_slot']] = $row; - } - echo ''; + echo '
'; + echo sprintf('Родовой знак', $this->showStarSign()); + echo '
'; echo ''; echo '
'; echo '