show artefact type items

This commit is contained in:
lopar 2019-01-12 12:04:24 +02:00
parent 232cdf3aa4
commit ff8c850d51
1 changed files with 6 additions and 0 deletions

View File

@ -3,11 +3,17 @@
class InventoryItem extends Item
{
private $present;
private $artefact;
public function __construct($row)
{
parent::__construct($row);
$this->present = $row['present'];
$this->artefact = $row['artefact'];
if ($this->artefact) $this->name = <<<NAME
<span style='color: darkorange;'>{$this->name}</span><img src="//{$_SERVER['SERVER_NAME']}/i/artefact1.gif">
NAME;
}
public function printInfo()