make class greater
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user