Обучение. Новые задания

This commit is contained in:
2023-01-18 12:51:06 +01:00
parent bae941e155
commit 3f579afaed
21 changed files with 643 additions and 283 deletions
+5
View File
@@ -1,6 +1,7 @@
<?php
use Core\Db;
use DarksLight2\Training\TrainingManager;
use Insallah\Math;
/*
@@ -2054,6 +2055,10 @@ class Priems
'UPDATE `stats` SET `priems` = "' . $p . '" WHERE `id` = "' . $this->u->info['id'] . '" LIMIT 1'
);
if ($upd) {
TrainingManager::getInstance()
->addPoint('my_user_fourth_quest', function (TrainingManager $manager) {
$manager->store();
});
$this->u->info['priems'] = $p;
}
} else {