Переезд impstats и additem..

This commit is contained in:
2023-04-16 02:54:34 +03:00
parent 3dc4cf7284
commit 2bc67ce543
127 changed files with 584 additions and 612 deletions
+4 -4
View File
@@ -138,7 +138,7 @@ if (!isset($_GET['mAjax']) && !isset($_GET['ajaxHostel'])) {
$act = -2;
$act2 = 0;
$u->stats = $u->getStats($u->info['id'], 0);
$u->aves = $u->ves(null);
$u->aves = \User\ItemsModel::inventoryWeightAndItemQuantity();
if (!isset($u->stats['act'])) {
$u->stats['act'] = 0;
}
@@ -365,7 +365,7 @@ if ($magic->youuse > 0) {
//Получение статов
if ($act != -2) {
$u->stats = $u->getStats($u->info['id'], 0, 1);
$u->aves = $u->ves(null);
$u->aves = \User\ItemsModel::inventoryWeightAndItemQuantity();
if (!isset($sleep['id'])) {
$act2 = $u->testItems($u->info['id'], $u->stats, 0);
}
@@ -532,11 +532,11 @@ foreach ($sp as $pl) {
//выдаем предмет
$glid = 1;
if ($pl['data'] == '0') {
$u->addItem(
\User\ItemsModel::addItem(
$pl['item_id'], $u->info['id'], '|from_loc_id=' . $pl['id'] . '|from_loc=' . $u->info['room']
);
} else {
$u->addItem(
\User\ItemsModel::addItem(
$pl['item_id'], $u->info['id'],
'|from_loc_id=' . $pl['id'] . '|from_loc=' . $u->info['room'] . '|' . $pl['data']
);