Отказ от старой дублирующей destructitem() в пользу классовой InventoryItem::destroyItem().
This commit is contained in:
@@ -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'] . "'," : "") . "
|
||||
|
||||
Reference in New Issue
Block a user