Advertisement
Guest User

Untitled

a guest
May 6th, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1.  
  2. while (CatchAnswer <= 0 || CatchAnswer >= 4)
  3. {
  4. Console.WriteLine("That is not a valid choice, you must choose one of the three equip options.");
  5. break;
  6. }
  7. if (CatchAnswer == 1)
  8. {
  9. Weapon Sword = new Weapon();
  10.  
  11. //action happens here somehow
  12. Sword.Equip(WarriorCharacter);
  13.  
  14. Console.WriteLine("You have equipped Your Sword.\n");
  15.  
  16. }
  17.  
  18. if (CatchAnswer == 2)
  19. {
  20. Chestpiece E_Chestpiece = new Chestpiece();
  21.  
  22. E_Chestpiece.Equip(WarriorCharacter);
  23.  
  24. Console.WriteLine("You have equipped your Chestpiece.\n");
  25. }
  26.  
  27. if (CatchAnswer == 3)
  28. {
  29. Helmet E_Helmet = new Helmet();
  30. E_Helmet.Equip(WarriorCharacter);
  31. Console.WriteLine("You have equipped your helmet.\n");
  32.  
  33. }
  34. break;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement