it works?!
This commit is contained in:
parent
98213698e8
commit
19316744ce
@ -5,7 +5,6 @@ class InventoryItem extends Item
|
||||
private $present;
|
||||
private $artefact;
|
||||
private $item_id;
|
||||
private $magic;
|
||||
|
||||
public function __construct($row)
|
||||
{
|
||||
@ -13,7 +12,6 @@ class InventoryItem extends Item
|
||||
$this->present = $row['present'];
|
||||
$this->artefact = $row['artefact'];
|
||||
$this->item_id = $row['id'];
|
||||
$this->magic = $row['magic'];
|
||||
|
||||
if ($this->artefact) $this->name = <<<NAME
|
||||
<b style='color: crimson;'>{$this->name}</b> <img src="//{$_SERVER['SERVER_NAME']}/i/artefact1.gif">
|
||||
@ -25,6 +23,7 @@ NAME;
|
||||
parent::printBaseInfo();
|
||||
parent::printRequirements();
|
||||
parent::printBonuses();
|
||||
parent::printMagic();
|
||||
if ($this->present) echo "<p style='color: maroon; font-style: italic'>Это подарок от {$this->present}. Вы не можете передать его кому-либо ещё.</p>";
|
||||
}
|
||||
|
||||
@ -48,10 +47,4 @@ NAME;
|
||||
onclick="location='/admin.php'">
|
||||
BTN;
|
||||
}
|
||||
|
||||
private function ShowMagicInfo($id)
|
||||
{
|
||||
$row = db::c()->query('SELECT * FROM `magic` WHERE `id` = ?i',$id)->fetch_assoc();
|
||||
$this->magicname = $row['name'];
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user