Отказ от старой дублирующей 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
+1 -1
View File
@@ -12,7 +12,7 @@ $vips = [1 => 0.15, 2 => 0.30, 3 => 0.45];
function show_item($row, $txt, $place)
{
if (($row['maxdur'] <= $row['duration']) || ($row['dategoden'] && $row['dategoden'] <= time())) {
destructitem($row['id']);
\Battles\InventoryItem::destroyItem($row['id']);
}
$r = '';