Переезд impstats и additem..
This commit is contained in:
@@ -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']
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user