Пример #1
0
        //selects which shop you want to visit: Potion, Weapon or Inn
        public static void SelectShop(Entity player)
        {
            string shopChoice = CheckTown();

            if (shopChoice.Contains("potion"))
            {
                PotionShop.VisitPotionShop(player);
            }
            else if (shopChoice.Contains("weapon"))
            {
                WeaponShop.VisitWeaponShop(player);
            }
            else if (shopChoice.Contains("inn"))
            {
                Inn.VisitInn(player);
            }
            else if (shopChoice.Contains("leave"))
            {
                ConsoleEffects.TypeLine("Good luck out there!\r\n");
                ConsoleEffects.PressEnter();
                return;
            }
            else
            {
                SelectShop(player);
            }
        }
Пример #2
0
 public static (int, int) Sleep(Entity player)
 {
     ConsoleEffects.SpeedLine("zz..zzzz..zzz...zzz.zzzzzz\r\n", 100);
     ConsoleEffects.PressEnter();
     player.Health = player.MaxHealth;
     ConsoleEffects.TypeLine(player.Name + "'s health is now at " + player.Health + "\r\n");
     if (player.IsMagicClass())
     {
         player.Mana = player.MaxMana;
         ConsoleEffects.TypeLine(player.Name + "'s mana is now at " + player.Mana + "\r\n");
     }
     ConsoleEffects.PressEnter();
     VisitInn(player);
     return(player.Health, player.Mana);
 }