Example #1
0
        public ArcadeFrame GetFrame()
        {
            float challengeSkillIndex = Challenges.GetChallengeSkillIndex();

            foreach (ArcadeFrame arcadeFrame in (IEnumerable <ArcadeFrame>) this._frames.OrderBy <ArcadeFrame, int>((Func <ArcadeFrame, int>)(x => x.saveData == null ? Rando.Int(100) : Rando.Int(100) + 200)))
            {
                if ((double)challengeSkillIndex >= (double)(float)arcadeFrame.respect && ChallengeData.CheckRequirement(Profiles.active[0], (string)arcadeFrame.requirement))
                {
                    return(arcadeFrame);
                }
            }
            return((ArcadeFrame)null);
        }
Example #2
0
        public void CheckFrames()
        {
            float challengeSkillIndex = Challenges.GetChallengeSkillIndex();

            foreach (ArcadeFrame frame in this._frames)
            {
                if ((double)challengeSkillIndex >= (double)(float)frame.respect && ChallengeData.CheckRequirement(Profiles.active[0], (string)frame.requirement))
                {
                    frame.visible = true;
                }
                else
                {
                    frame.visible = false;
                }
            }
        }