Переезд функции repexp; Переезд классов User в неймспейс.

This commit is contained in:
2023-04-15 22:52:33 +03:00
parent ec11709a86
commit 2d63efd915
29 changed files with 339 additions and 233 deletions
+4 -1
View File
@@ -1,4 +1,7 @@
<?php
use User\StatsModel;
if (!defined('GAME') || $u->room['file'] != 'ab/hram') {
exit();
}
@@ -48,7 +51,7 @@ if (isset($_GET['itm']) && $qst_hram && $_GET['itm'] > 0) {
mysql_query(sprintf('update items_users set `delete` = unix_timestamp() where id in (%d, %d, %d)',
$itm1['iid'], $itm2['iid'], $itm3['iid']));
if (date('w') == 0 || date('w') == 6 || date('w') == 2) {
$u->repexp_add($u->info['id'], 10); //Репутация плавка рун +10
StatsModel::addRepexpById($u->info['id'], 10); //Репутация плавка рун +10
}
}
}