Отказ от старой дублирующей destructitem() в пользу классовой InventoryItem::destroyItem().

This commit is contained in:
lopar
2021-05-12 22:02:05 +03:00
parent cb3887b773
commit 2f4dfd84cf
5 changed files with 22 additions and 25 deletions

View File

@@ -43,7 +43,7 @@ if ($user['battle'] > 0) {
echo "<font color=red><b>Этот свиток нельзя встраивать в предметы!<b></font>";
} else {
// встраиваем
destructitem($svitok['id']);
\Battles\InventoryItem::destroyItem($svitok['id']);
echo "<font color=red><b>Свиток \"" . $svitok['name'] . "\" удачно встроен в \"" . $dress['name'] . "\"<b></font>";
mysql_query("UPDATE `inventory` SET
" . ($dress['nintel'] < $svitok['nintel'] ? "`nintel`='" . $svitok['nintel'] . "'," : "") . "