Exemple #1
0
        }//end Attack

        //BATTLE
        public static void Battle(PlayerCharacter player, Croanie croanie)
        {
            if (player.HitPoints <= 0)
            {
                Console.WriteLine($"Looks like you were right about his being a bad idea. {croanie.Name} killed you...");
            }
            else if (croanie.HitPoints <= 0)
            {
                Console.WriteLine($"You killed {croanie.Name}!");
            }

            if (player.Initiative >= croanie.Initiative)
            {
                Attack(player, croanie);
                if (croanie.HitPoints > 0)
                {
                    Attack(croanie, player);
                }
            }
            else
            {
                Attack(croanie, player);
                if (player.HitPoints > 0)
                {
                    Attack(player, croanie);
                }
                else
                {
                    Console.WriteLine($"Looks like you were right about his being a bad idea. {croanie.Name} killed you...");
                }
            }
        }
Exemple #2
0
        }//end Main

        //Game Enemies
        private static void GetCroanie(int indexNbr)
        {
            List <Croanie> ListCroanie = new List <Croanie>()
            {
                new Croanie("He's called Two-Fry. ALways makes it quick and clean.", 7, "Too-Fry", 3, 1, 1, 1, 4, 7)
            };

            croanie = ListCroanie[indexNbr];
        }//end Croanies