make class greater

This commit is contained in:
Igor Barkov [iwork]
2019-01-14 16:40:12 +02:00
parent 77081db3a7
commit e7f8d99ac2
3 changed files with 1 additions and 13 deletions
-4
View File
@@ -3,15 +3,11 @@
class InventoryItem extends Item
{
private $present;
private $artefact;
private $item_id;
public function __construct($row)
{
parent::__construct($row);
$this->present = $row['present'];
$this->artefact = $row['artefact'];
$this->item_id = $row['id'];
if ($this->artefact) $this->name = <<<NAME
<b style='color: crimson;'>{$this->name}</b> <img src="//{$_SERVER['SERVER_NAME']}/i/artefact1.gif">