show item type

This commit is contained in:
lopar 2019-01-12 00:18:18 +02:00
parent 5abeae914a
commit 6c62b2f899
2 changed files with 10 additions and 0 deletions

View File

@ -9,6 +9,11 @@ class InventoryItem extends Item
parent::printBonuses();
}
public function printImage()
{
parent::printImage(); // TODO: Change the autogenerated stub
}
/**
* Для кнопок управления под картинкой прелмета в зависимости от ситуации.
*/

View File

@ -8,6 +8,8 @@ abstract class Item
public $maxdur;
public $img;
public $type;
public $nlevel;
public $nsila;
public $nlovk;
@ -69,6 +71,8 @@ abstract class Item
$this->maxdur = $row['maxdur'];
$this->img = $row['img'];
$this->type = $row['type'];
$this->nlevel = $row['nlevel'];
$this->nalign = $row['nalign'];
$this->nsila = $row['nsila'];
@ -137,6 +141,7 @@ abstract class Item
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>Тип → {$this->type}";
}
protected function printRequirements()