Exemplo n.º 1
0
 private void StartBattle()  //sets up everything in preparation for the battle
 {
     if (player.Children.Count > 0)
     {
         player.InBattle = true;
         Child opponentChild = spawner.Spawner(this, true);
         System.Console.WriteLine($"Engaged Level {opponentChild.Level} {opponentChild.Name} in battle");
         Key.Press();
         BattleSession(opponentChild);
     }
     else    //If you have no children you are yoted back
     {
         TempName(Room.rooms["Battle"]);
     }
 }
Exemplo n.º 2
0
        public void ChooseStarter(ChildSpawner spawner) //This method lets the player choose between 3 children and then adds them to the player's children
        {
            System.Console.WriteLine("Before you can begin your adventure of weaponizing young children for your own profit and entertainment, you must choose a starting child.");
            System.Console.WriteLine("You will be presented with 3 choices.");
            Key.Press();
            Child[]  starterChildren = new Child[3];
            string[] choices         = new string[3];
            for (int i = 0; i < starterChildren.Length; i++)
            {
                starterChildren[i] = spawner.Spawner(controller, false);
                choices[i]         = $"Name: {starterChildren[i].Name} Level: {starterChildren[i].Level}";
            }

            Children.Add(starterChildren[Selection(choices, "Choose one of the following children", true).ReturnInt]);
            activeChild = Children[Children.Count - 1];
            System.Console.WriteLine($"you chose {Children[Children.Count - 1].Name}. It is level {Children[Children.Count - 1].Level} and is {Children[Children.Count - 1].Alignment}");
        }