Подрубил счётчик участий в турнирах #12
This commit is contained in:
@@ -199,11 +199,25 @@ class Achievements
|
||||
return $this->info;
|
||||
}
|
||||
|
||||
public function updateTier($name)
|
||||
private function addOne($name)
|
||||
{
|
||||
Db::sql("update users_achiv set $name = $name + 1 where id = ?", [$this->user->info['id']]);
|
||||
}
|
||||
|
||||
public function updateTier($name)
|
||||
{
|
||||
if (in_array($name, array_keys($this->data))) {
|
||||
$this->addOne($name . '_n');
|
||||
}
|
||||
}
|
||||
|
||||
public function updateCounter($name)
|
||||
{
|
||||
if (in_array($name, array_keys($this->data))) {
|
||||
$this->addOne($name);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array[]
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user