private void Display() { DisplayGladiator(); Write.Line(0, 25, "'Well? Does anyone catch your eye?'"); Write.Line(0, 26, "[0] to return"); Gladiator g = new Gladiator(1); int choice = Return.Int(); if (choice > 0 && choice <= list.Count) { g = list[choice - 1]; } else if (choice == 0) { Location.list[0].Go(); } else { Display(); } DisplayGladiator(); Write.Line(15, 18, g.Name); Write.Line(15, 19, "Price " + g.Price); if (Return.Afford(g.Price)) { if (Write.Confirm(15, 20)) { Write.Line(0, 25, $"'Wonderful!'\nRizzo takes your money, and {g.Name} joins your team\n"); Owner.p.Gold -= g.Price; RosterAdd(g); Write.KeyPress(); Location.list[0].Go(); } else { Display(); } } else { Write.Line(0, 25, "You can't afford it\n"); Write.KeyPress(); Location.list[0].Go(); } }
private static void Name() { Console.Clear(); Write.Line("What is your name?\n"); string choice = Console.ReadLine(); Console.Clear(); Write.Line(choice + " is your name?"); if (Write.Confirm(0, 2)) { p.Name = choice; Location.list[0].Go(); } else { Name(); } }