Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- else if (input.ToLower() == "h" || input.ToLower() == "heal")
- {
- //Heal
- if (Game.currentPlayer.potions <= 0)
- {
- int damage = p - Game.currentPlayer.armorValue;
- if (damage < 0)
- damage = 0;
- Console.WriteLine("You do not have any potions to consume");
- Console.WriteLine("The " +n+ " strikes you as he reacts to you not having any potions, you lose "+ damage +" health.");
- }
- else
- {
- int damage = p - Game.currentPlayer.armorValue;
- int potionV = 5;
- Console.WriteLine("You consume a potion and gain "+potionV+" points of health");
- Game.currentPlayer.health += potionV;
- Console.WriteLine("While consuming the potion, the "+ n +" takes advantage and strikes you");
- if (damage < 0)
- damage = 0;
- Console.WriteLine("You lose " + damage + " health");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement