From 729fa148d7913ce9d76e3fc845299f4cf50b7a97 Mon Sep 17 00:00:00 2001 From: "Igor Barkov [iwork]" Date: Mon, 14 Jan 2019 18:14:49 +0200 Subject: [PATCH] make class greater:modificators --- classes/Item.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/classes/Item.php b/classes/Item.php index 3afe5af..faccbd0 100644 --- a/classes/Item.php +++ b/classes/Item.php @@ -214,16 +214,18 @@ 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 "
"; + 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); @@ -239,7 +241,7 @@ IMG; protected function printBonuses() { - echo "
"; + 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); @@ -271,12 +273,14 @@ IMG; 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