diff --git a/classes/ItemClass.php b/classes/ItemClass.php
index 5d9bb01..7b8b978 100644
--- a/classes/ItemClass.php
+++ b/classes/ItemClass.php
@@ -8,11 +8,23 @@
class ItemClass extends Item
{
- /**
- *
- */
public function printItemStats()
{
- echo $this->name ." (Масса: ". $this->massa .")
";
+ echo $this->name ." (Масса: ". $this->massa .")";
+ if ($this->nalign) echo " nalign}.gif title='Этот предмет могут использовать только игроки с определённой склонностью.'> ";
+ if ($this->count > 0) echo "
(Осталось: {$this->count} штук)";
+ if ($this->maxdur > 0) echo "
(Долговечность: 0 / {$this->maxdur}";
+ if ($this->nsila) echo "
Требуется сила: {$this->nsila}";
+ if ($this->nlovk) echo "
Требуется ловкость: {$this->nlovk}";
+ if ($this->ninta) echo "
Требуется интуиция: {$this->ninta}";
+ if ($this->nvinos) echo "
Требуется выносливость: {$this->nvinos}";
+
+
+ echo "
";
+ }
+
+ public function printItemImage()
+ {
+ echo "fetch_assoc()) {
$iteminfo[] = new ItemClass($row);
}
+echo "
"; + $iinfo->printItemImage(); + echo " | "; + echo ""; $iinfo->printItemStats(); + echo " | "; } +echo " |