magic IS a bonus
This commit is contained in:
parent
b204f896f2
commit
4ad04b9571
@ -19,7 +19,6 @@ NAME;
|
||||
parent::printBaseInfo();
|
||||
parent::printRequirements();
|
||||
parent::printBonuses();
|
||||
parent::printMagic();
|
||||
if ($this->present) echo "<p style='color: maroon; font-style: italic'>Это подарок от {$this->present}. Вы не можете передать его кому-либо ещё.</p>";
|
||||
}
|
||||
|
||||
|
@ -88,6 +88,7 @@ abstract class Item
|
||||
|
||||
/**
|
||||
* Item constructor.
|
||||
*
|
||||
* @param $row
|
||||
*/
|
||||
public function __construct($row)
|
||||
@ -209,10 +210,6 @@ IMG;
|
||||
if ($this->bron2) echo "<br>Броня корпуса" . $this->wrap($this->bron2);
|
||||
if ($this->bron3) echo "<br>Броня пояса" . $this->wrap($this->bron3);
|
||||
if ($this->bron4) echo "<br>Броня ног" . $this->wrap($this->bron4);
|
||||
}
|
||||
|
||||
protected function printMagic()
|
||||
{
|
||||
if ($this->magic AND $this->type != 12) {
|
||||
echo "<br>Магические свойства:";
|
||||
if ($this->magic_name) echo "<br><i style='color: dimgray;'>{$this->magic_name}</i>";
|
||||
|
@ -7,7 +7,6 @@ class ShopItem extends Item
|
||||
parent::printBaseInfo();
|
||||
parent::printRequirements();
|
||||
parent::printBonuses();
|
||||
parent::printMagic();
|
||||
}
|
||||
|
||||
public function buyItem($owner)
|
||||
|
Loading…
Reference in New Issue
Block a user