make class greater
This commit is contained in:
parent
77081db3a7
commit
e7f8d99ac2
@ -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">
|
||||
|
@ -13,6 +13,7 @@ abstract class Item
|
||||
public $razdel;
|
||||
public $cost;
|
||||
public $ecost;
|
||||
public $artefact;
|
||||
|
||||
public $type; # эти. что есть что нет...
|
||||
|
||||
|
@ -2,15 +2,6 @@
|
||||
|
||||
class ShopItem extends Item
|
||||
{
|
||||
private $cost;
|
||||
private $count;
|
||||
|
||||
public function __construct($row)
|
||||
{
|
||||
parent::__construct($row);
|
||||
$this->cost = $row['cost'];
|
||||
$this->count = $row['count'];
|
||||
}
|
||||
|
||||
public function printInfo()
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user