Example #1
0
        public override void Call(GameTime gameTime, NaviState naviState)
        {
            if (typingStrings == null)
            {
                Initialize(naviState);

                typingStrings.lines.Add("You wanna foight mate?\n");
                typingStrings.lines.Add("\nI'll focken shank ya fam.");
                typingStrings.lines.Add("Or at least these arseholes will,\n\nI don't have hands.");

                previousState = 0;
                state         = 0;

                index = 0;
            }

            if (naviState.Type(typingStrings, gameTime, 0.01))
            {
                naviState.pointer.Scale = new Vector2(0.8f, 0.8f);

                typingStrings = null;

                typingStrings       = new TypingStrings();
                typingStrings.lines = new List <string>();
                typingStrings.lines.Add("Still no hands.");
                typingStrings.line          = "";
                typingStrings.previousLines = "";

                naviState.BattleBegin(potentialTroops);
            }
        }
Example #2
0
        public override bool Call(GameTime gameTime, NaviState naviState)
        {
            Random rand = new Random();

            if (rand.Next(1, 101) <= 10 + naviState.encounterRate)
            {
                naviState.BattleBegin(potentialEnemies);

                naviState.encounterRate = 0;
            }
            else
            {
                naviState.encounterRate += 4;

                naviState.Movement();
            }

            Complete(naviState);

            return(true);
        }