magic IS a bonus

This commit is contained in:
Igor Barkov [iwork] 2019-02-15 13:38:30 +02:00
parent b204f896f2
commit 4ad04b9571
3 changed files with 1 additions and 6 deletions

View File

@ -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>";
}

View File

@ -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>";

View File

@ -7,7 +7,6 @@ class ShopItem extends Item
parent::printBaseInfo();
parent::printRequirements();
parent::printBonuses();
parent::printMagic();
}
public function buyItem($owner)