Advertisement
Guest User

Untitled

a guest
Mar 2nd, 2015
247
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.72 KB | None | 0 0
  1.         string stance;
  2.         // this is the part i want to get rid of/reformat
  3.                 Console.WriteLine("assault or fortify?");
  4.                 stance = Console.ReadLine();
  5.  
  6.                 Console.WriteLine("attack, defend, or spell?");
  7.                 action = Console.ReadLine();
  8.  
  9.                 bool defend = false;
  10.              
  11.                
  12.                     if (stance == "fortify")
  13.                     {
  14.                         defend = true;
  15.                     }
  16.                
  17.  
  18.                 if (!defend)
  19.                 {
  20.                     assaultmoves();
  21.                 }
  22.  
  23.  
  24.                 if (defend == true)
  25.                 {
  26.                     fortifymoves();
  27.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement