it works?!
This commit is contained in:
parent
e1fe5b7979
commit
fa74a5a5b7
@ -61,7 +61,7 @@ abstract class Item
|
|||||||
public $mfauvorot;
|
public $mfauvorot;
|
||||||
|
|
||||||
public $magic;
|
public $magic;
|
||||||
public $magic_name = 'Неизвестная магия';
|
public $magic_name;
|
||||||
public $magic_img;
|
public $magic_img;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -76,8 +76,7 @@ abstract class Item
|
|||||||
$this->$key = $row[$key];
|
$this->$key = $row[$key];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
$this->magic_name = $row['magic_name'];
|
|
||||||
$this->magic_img = $row['magic_img'];
|
|
||||||
// ТА ЛААААДНО?!
|
// ТА ЛААААДНО?!
|
||||||
// $this->name = $row['name'];
|
// $this->name = $row['name'];
|
||||||
// $this->massa = $row['massa'];
|
// $this->massa = $row['massa'];
|
||||||
@ -250,8 +249,9 @@ IMG;
|
|||||||
if ($this->magic) {
|
if ($this->magic) {
|
||||||
echo "<br>Магические свойства:";
|
echo "<br>Магические свойства:";
|
||||||
if ($this->magic_name) echo "<br><i style='color: dimgray;'>{$this->magic_name}</i>";
|
if ($this->magic_name) echo "<br><i style='color: dimgray;'>{$this->magic_name}</i>";
|
||||||
|
else echo "<br><i style='color: dimgray;'>Неопознанная магия</i>";
|
||||||
if ($this->magic_img) echo <<<IMG
|
if ($this->magic_img) echo <<<IMG
|
||||||
<img src="//{$_SERVER['SERVER_NAME']}/i/sh/{$this->magic_img}" class="item-wrap-normal">
|
<br><img src="//{$_SERVER['SERVER_NAME']}/i/sh/{$this->magic_img}" class="item-wrap-normal">
|
||||||
IMG;
|
IMG;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user