diff --git a/classes/InventoryItem.php b/classes/InventoryItem.php index d68f528..90aab51 100644 --- a/classes/InventoryItem.php +++ b/classes/InventoryItem.php @@ -4,15 +4,17 @@ 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 = <<{$this->name} +{$this->name} NAME; } @@ -27,7 +29,7 @@ NAME; public function printImage() { if (!in_array($this->type,[12,50,200])) { - echo ""; + echo "item_id} title='Надеть'>"; parent::printImage(); echo ""; } @@ -40,9 +42,7 @@ NAME; public function printControls() { echo << - BTN; }