add: 8 more achievements
This commit is contained in:
parent
8d70f65863
commit
a799c777ea
11 changed files with 121 additions and 18 deletions
|
@ -265,6 +265,33 @@ impl DataManager {
|
|||
self.add_achievement(&mut other_user, AchievementName::FollowedByStaff.into())
|
||||
.await?;
|
||||
}
|
||||
|
||||
// other achivements
|
||||
self.add_achievement(&mut other_user, AchievementName::Get1Follower.into())
|
||||
.await?;
|
||||
|
||||
if other_user.follower_count >= 9 {
|
||||
self.add_achievement(&mut other_user, AchievementName::Get10Followers.into())
|
||||
.await?;
|
||||
}
|
||||
|
||||
if other_user.follower_count >= 49 {
|
||||
self.add_achievement(&mut other_user, AchievementName::Get50Followers.into())
|
||||
.await?;
|
||||
}
|
||||
|
||||
if other_user.follower_count >= 99 {
|
||||
self.add_achievement(&mut other_user, AchievementName::Get100Followers.into())
|
||||
.await?;
|
||||
}
|
||||
|
||||
if initiator.following_count >= 9 {
|
||||
self.add_achievement(
|
||||
&mut initiator.clone(),
|
||||
AchievementName::Follow10Users.into(),
|
||||
)
|
||||
.await?;
|
||||
}
|
||||
}
|
||||
|
||||
// ...
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue