From 38288066455819c1b7bb0472cdfc040c942b112a Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Mon, 14 Jan 2019 18:34:50 +0200 Subject: [PATCH] make class greater --- classes/Item.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/classes/Item.php b/classes/Item.php index faccbd0..7fcd2b3 100644 --- a/classes/Item.php +++ b/classes/Item.php @@ -214,18 +214,15 @@ IMG; protected function printBaseInfo() { - echo "
"; echo "" . $this->name . " (Масса: " . $this->massa . ")"; if ($this->nalign) echo " nalign}.gif title='Этот предмет могут использовать только игроки с определённой склонностью.'> "; if ($this->maxdur > 0) echo "
Долговечность: {$this->maxdur}"; if ($this->maxdur == -1) echo "
Долговечность: неразрушимо"; echo "
{$this->typename}"; - echo "
"; } protected function printRequirements() { - echo "
"; if ($this->nlevel > 0) echo "
Требуется уровень" . $this->wrap($this->nlevel); if ($this->nnoj > 0) echo "
Требуется владение колющим оружиием" . $this->wrap($this->nnoj); if ($this->ndubina > 0) echo "
Требуется владение дробящим оружием" . $this->wrap($this->ndubina); @@ -236,12 +233,10 @@ IMG; if ($this->ninta > 0) echo "
Требуется интуиция" . $this->wrap($this->ninta); if ($this->nvinos > 0) echo "
Требуется выносливость" . $this->wrap($this->nvinos); if ($this->nintel > 0) echo "
Требуется интеллект" . $this->wrap($this->nintel); - echo "
"; } protected function printBonuses() { - echo "
"; if ($this->gsila) echo "
Сила" . $this->wrap($this->gsila); if ($this->glovk) echo "
Ловкость" . $this->wrap($this->glovk); if ($this->ginta) echo "
Интуиция" . $this->wrap($this->ginta); @@ -267,20 +262,17 @@ IMG; if ($this->bron2) echo "
Броня корпуса" . $this->wrap($this->bron2); if ($this->bron3) echo "
Броня пояса" . $this->wrap($this->bron3); if ($this->bron4) echo "
Броня ног" . $this->wrap($this->bron4); - echo "
"; } protected function printMagic() { if ($this->magic AND $this->type != 12) { - echo "
"; echo "
Магические свойства:"; if ($this->magic_name) echo "
{$this->magic_name}"; else echo "
Неопознанная магия"; if ($this->magic_img AND $this->type != 50) echo << IMG; - echo "
"; } } } \ No newline at end of file