예제 #1
0
        public bool HasCompleted(Habbo habbo)
        {
            foreach (KeyValuePair <string, int> achievement in this.AchievementsRequired)
            {
                AchievementLevel achievementLevel = Skylight.GetGame().GetAchievementManager().GetAchievement(achievement.Key).GetLevel(achievement.Value);
                if (habbo.GetUserAchievements().GetAchievementLevel(achievement.Key) < achievementLevel.Level)
                {
                    return(false);
                }
            }

            return(true);
        }