show artefact type items
This commit is contained in:
parent
232cdf3aa4
commit
ff8c850d51
@ -3,11 +3,17 @@
|
|||||||
class InventoryItem extends Item
|
class InventoryItem extends Item
|
||||||
{
|
{
|
||||||
private $present;
|
private $present;
|
||||||
|
private $artefact;
|
||||||
|
|
||||||
public function __construct($row)
|
public function __construct($row)
|
||||||
{
|
{
|
||||||
parent::__construct($row);
|
parent::__construct($row);
|
||||||
$this->present = $row['present'];
|
$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()
|
public function printInfo()
|
||||||
|
Loading…
Reference in New Issue
Block a user