From ff8c850d516dd80dc9484956a5de1a95fa3921e1 Mon Sep 17 00:00:00 2001 From: lopar Date: Sat, 12 Jan 2019 12:04:24 +0200 Subject: [PATCH] show artefact type items --- classes/InventoryItem.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/classes/InventoryItem.php b/classes/InventoryItem.php index 06bd4d0..53b5cfa 100644 --- a/classes/InventoryItem.php +++ b/classes/InventoryItem.php @@ -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 = <<{$this->name} +NAME; } public function printInfo()