Exemplo n.º 1
0
 //gets player stats
 public static void DisplayMap(Player_Stats player)
 {
     if (player.GetItemCount("Map") != 0)
     {
         //TODO: map code
     }
     else
     {
         TextWriter.Write("You do not have a map. To get one buy one from the shop");
     }
 }
Exemplo n.º 2
0
 private void WritePlayerOptions(Player_Stats ps, bool canDrinkPotion = true, bool canRun = true)
 {
     TextWriter.Write(
         $"\n%1------------------%0\n\n" +
         $"Player Health: %3{ps.health}%0\n" +
         $"Player Strength: %3{ps.strength}%0\n" +
         $"Player Weapon Attack: %4{ps.EquippedWeapon.metadata}%0\n" +
         $"Total Attack Power: %4{GetDamage(ps)}%0\n" +
         $"\nWhat will you do\\?\n" +
         $"'%3A%0' - Attack\\! ({ps.EquippedWeapon.name})\n" +
         $"{(canDrinkPotion ? $"'%3H%0' - Drink Health Potion (You have {ps.GetItemCount("health potion")}" : "")})" +
         $"{(canRun ? "\n'%3R%0' - Run Away (Lose a random amount of gold\\!)" : "")}" +
         "\n%1>>>%0 ", 10);
 }