add: 8 more achievements
This commit is contained in:
parent
8d70f65863
commit
a799c777ea
11 changed files with 121 additions and 18 deletions
|
@ -713,6 +713,10 @@ impl DataManager {
|
|||
///
|
||||
/// Still returns `Ok` if the user already has the achievement.
|
||||
pub async fn add_achievement(&self, user: &mut User, achievement: Achievement) -> Result<()> {
|
||||
if user.settings.disable_achievements {
|
||||
return Ok(());
|
||||
}
|
||||
|
||||
if user
|
||||
.achievements
|
||||
.iter()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue