make class greater:modificators
This commit is contained in:
parent
51c9b29cfb
commit
4df751bb7c
@ -12,8 +12,6 @@ class ShopItem extends Item
|
|||||||
public function printInfo()
|
public function printInfo()
|
||||||
{
|
{
|
||||||
parent::printBaseInfo();
|
parent::printBaseInfo();
|
||||||
echo "<br>Цена" . $this->wrap($this->cost) . " пымпочек";
|
|
||||||
if ($this->count > 0) echo "<br><small>(Осталось: {$this->count} штук)</small>";
|
|
||||||
parent::printRequirements();
|
parent::printRequirements();
|
||||||
parent::printBonuses();
|
parent::printBonuses();
|
||||||
parent::printMagic();
|
parent::printMagic();
|
||||||
@ -29,5 +27,6 @@ class ShopItem extends Item
|
|||||||
<p><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="{$btnPrice}"
|
<p><input type="button" style="background: darkgrey; border: 1px solid grey; border-radius: 2px;" value="{$btnPrice}"
|
||||||
onclick="location='/admin.php'">
|
onclick="location='/admin.php'">
|
||||||
BTN;
|
BTN;
|
||||||
|
if ($this->count > 0) echo "<br><small>(Осталось: {$this->count} штук)</small>";
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
x
Reference in New Issue
Block a user