Отказ от старой дублирующей addOnePoint() в пользу классовой User::addOnePointToStat().

This commit is contained in:
lopar
2021-05-12 22:07:02 +03:00
parent 582cce3c17
commit 4fd822e644
2 changed files with 0 additions and 56 deletions
-4
View File
@@ -34,7 +34,6 @@ $edit = $_GET['edit'] ?? null;
if ($edit) {
$ups = $_GET['ups'] ?? null;
$upm = $_GET['upm'] ?? null;
$use = $_GET['use'] ?? null;
$useTarget = $_POST['target'] ?? null;
$drop = $_GET['drop'] ?? null;
@@ -45,9 +44,6 @@ if ($edit) {
if ($ups) {
$user->addOnePointToStat($ups);
}
if ($upm) {
addOnePoint($upm, 'mastery');
}
if ($drop) {
$items = new DressedItems($_SESSION['uid']);
$items->undressItem($drop);