Удалён зодиак. Фиксы перехода php7.2 -> php7.4. Покупка и продажа за банкноты (#25). Унификация вывода кнопок в магазине. Удалён старый закомментированый код. Больше констант. Плавная текучка от библиотеки db::c в сторону DBPDO. И тому подобное. Процесс идёт...

This commit is contained in:
Igor Barkov (iwork)
2021-08-20 20:40:06 +03:00
parent fd6c1e8986
commit 5714ab83f3
13 changed files with 423 additions and 509 deletions
+2 -6
View File
@@ -6,7 +6,6 @@ class Item
protected $name;
protected $item_type;
protected $durability;
protected $price;
protected $need_strength;
protected $need_dexterity;
protected $need_intuition;
@@ -102,8 +101,6 @@ class Item
}
}
protected function wrap(int $number):string
{
if ($number > 0) {
@@ -134,10 +131,9 @@ class Item
"Увёртливость" => $this->add_evasion,
"Шанс крита" => $this->add_criticals,
];
echo "<b>" . $this->name . "</b> (Масса: " . $this->weight . ")";
echo "<b>$this->name</b> (Масса: $this->weight)";
echo "<br> Долговечность: " . $this->durability;
echo "<br><em>{$this->typename}</em><br>";
echo "<br><em>$this->typename</em><br>";
foreach ($needsLines as $stat => $value) {
if ($value > 0) {
echo "<br>Требуется $stat" . $this->wrap($value);