This commit is contained in:
2022-06-11 02:18:04 +03:00
parent 4bd6a08e8a
commit b8f837b6cf
6 changed files with 94 additions and 70 deletions
+5
View File
@@ -216,6 +216,11 @@ class User
return $this->experience;
}
public function addExperience(int $amount): void
{
$this->experience += max($amount, 0);
}
public function getBattle(): int
{
return $this->battle;