public void inspect_Equipment(Equipment_Set equipment, Player player)
        {
            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine("==================================");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine("Describtion: " + equipment.description + "\nHealth buff:" + equipment.health_Buff + "\nArmor buff: " + equipment.armor_Buff);

            Console.ForegroundColor = ConsoleColor.Blue;
            Console.WriteLine("==================================");
            Console.ForegroundColor = ConsoleColor.Gray;

            Console.WriteLine("\nWhat do you want to do now?\n1. Equip\n2. Throw away");
            string user_Choice = Console.ReadLine();

            if (user_Choice == "1" || user_Choice == "equip")
            {
                equip_Equipment(player, equipment);
            }
            else if (user_Choice == "2" || user_Choice == "throw away")
            {
                Console.ForegroundColor = ConsoleColor.Green;
                Console.Write("\nThrowing away the ");
                Console.ForegroundColor = ConsoleColor.Gray;
                Console.WriteLine(equipment.name + "!");
                Thread.Sleep(1200);
            }
        }
Beispiel #2
0
 public void update_Stats_With_Equipment(Equipment_Set equipment, Player player)
 {
     player.equipment_Health  = equipment.health_Buff;
     player.equiped_Equipment = equipment.name;
     player.health            = (equipment.health_Buff + (default_Health * (level * 0.85)));
     player.armor             = equipment.armor_Buff + (default_Armor * (level * 0.85));
 }
        public void equip_Equipment(Player player, Equipment_Set equipment)
        {
            Console.ForegroundColor = ConsoleColor.Green;
            Console.Write("\nEquipping the ");
            Console.ForegroundColor = ConsoleColor.Gray;
            Console.WriteLine(equipment.name);

            player.update_Stats_With_Equipment(equipment, player);

            Thread.Sleep(1000);
        }