make class greater

This commit is contained in:
Igor Barkov [iwork] 2019-01-14 18:34:50 +02:00
parent 4df751bb7c
commit 3828806645
1 changed files with 0 additions and 8 deletions

View File

@ -214,18 +214,15 @@ IMG;
protected function printBaseInfo()
{
echo "<div>";
echo "<b>" . $this->name . "</b> (Масса: " . $this->massa . ")";
if ($this->nalign) echo " <img src=i/align_{$this->nalign}.gif title='Этот предмет могут использовать только игроки с определённой склонностью.'> ";
if ($this->maxdur > 0) echo "<br>Долговечность: {$this->maxdur}";
if ($this->maxdur == -1) echo "<br>Долговечность: <i>неразрушимо</i>";
echo "<br><i>{$this->typename}</i>";
echo "</div>";
}
protected function printRequirements()
{
echo "<div>";
if ($this->nlevel > 0) echo "<br>Требуется уровень" . $this->wrap($this->nlevel);
if ($this->nnoj > 0) echo "<br>Требуется владение колющим оружиием" . $this->wrap($this->nnoj);
if ($this->ndubina > 0) echo "<br>Требуется владение дробящим оружием" . $this->wrap($this->ndubina);
@ -236,12 +233,10 @@ IMG;
if ($this->ninta > 0) echo "<br>Требуется интуиция" . $this->wrap($this->ninta);
if ($this->nvinos > 0) echo "<br>Требуется выносливость" . $this->wrap($this->nvinos);
if ($this->nintel > 0) echo "<br>Требуется интеллект" . $this->wrap($this->nintel);
echo "</div>";
}
protected function printBonuses()
{
echo "<div>";
if ($this->gsila) echo "<br>Сила" . $this->wrap($this->gsila);
if ($this->glovk) echo "<br>Ловкость" . $this->wrap($this->glovk);
if ($this->ginta) echo "<br>Интуиция" . $this->wrap($this->ginta);
@ -267,20 +262,17 @@ IMG;
if ($this->bron2) echo "<br>Броня корпуса" . $this->wrap($this->bron2);
if ($this->bron3) echo "<br>Броня пояса" . $this->wrap($this->bron3);
if ($this->bron4) echo "<br>Броня ног" . $this->wrap($this->bron4);
echo "</div>";
}
protected function printMagic()
{
if ($this->magic AND $this->type != 12) {
echo "<div>";
echo "<br>Магические свойства:";
if ($this->magic_name) echo "<br><i style='color: dimgray;'>{$this->magic_name}</i>";
else echo "<br><i style='color: dimgray;'>Неопознанная магия</i>";
if ($this->magic_img AND $this->type != 50) echo <<<IMG
<br><img src="//{$_SERVER['SERVER_NAME']}/i/sh/{$this->magic_img}" class="item-wrap-normal">
IMG;
echo "</div>";
}
}
}