Пример #1
0
 private ValueTask UnlockLewdAchievementAsync(IContext e, AchievementService service)
 {
     if (MikiRandom.Next(100) == 50)
     {
         var lewdAchievement = service.GetAchievementOrDefault(AchievementIds.LewdId);
         return(new ValueTask(service.UnlockAsync(e, lewdAchievement, e.GetAuthor().Id)));
     }
     return(default);