WIP: разгрузка User:class от сторонних методов.

This commit is contained in:
2023-04-18 12:21:54 +03:00
parent 2bc67ce543
commit 02c76e76ad
15 changed files with 548 additions and 4100 deletions

View File

@@ -4,9 +4,8 @@ if(!defined('GAME'))
die();
}
if( $itm['id'] > 0 ) {
$u->deleteItem($itm['id']);
mysql_query('update `rep` set `rep1` = `rep1` + 100 WHERE `id` = "'.$u->info['id'].'" LIMIT 1');
$u->error = 'Вы повысили репутацию Храма Знаний на +100 ед.';
}
?>
if($itm['id'] <= 0) {
return;
}
$u->deleteItem($itm['id']);
$u->error = \Location\KnowledgeTemple::addReputation(100);