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