public void UseSword(Player CurrentPlayer) { System.Console.WriteLine(@"You smote the Kerrek! He lays there stinking. A light rain heralds the washing free of the Kerrek's grip on the land. You're feeling pretty good, though, so the artless symbolism doesn't bug you. "); Kerrek kerrek = (Kerrek)Characters.Find(c => c.Name.ToLower() == "kerrek"); kerrek.Description = "The Kerrek lays there. You see his cool golden belt glinting in the sun."; kerrek.isAlive = false; Item belt = new Item("Belt", "Phew! This thing stinks like all getout. Why couldn't the Kerrek have kidnapped a hot wench or something that you could have saved?", "You claim the Kerrek's cool belt as your trophy. It stinks just like him! You start to miss him, a little."); Items.Add(belt); }
public void Setup() { //Items Item belt = new Item("Belt", "Phew! This thing stinks like all getout. Why couldn't the Kerrek have kidnapped a hot wench or something that you could have saved?", "You claim the Kerrek's cool belt as your trophy. It stinks just like him! You start to miss him, a little."); Item robe = new Item("Robe", "A vintage peasant robe! Just like grampa used to wear, and the only remaining posession from your burninated cottage. Stylishly smouldering.", @"It's still burning - now you'll LOOK like a peasant and be ON FIRE like a peasant. The fires of vengeance that burn in your heart help you ignore the pain from the literal flames on the robe."); Item sword = new Item("Sword", "The TrogSword is for real. Hands-down the coolest item in the game. You can't wait to lop off that beefy arm of Trogdor's with this guy.", @"Something tells you this is a good idea and you lob the little one into the lake. You won't be arrested after all! The little guy has resurfaced safely, carrying a sword. You take the sword - Way to go, baby! Baby Dashing keeps on crawling headed off to a new life. He becomes Valedictorian of his graduating class, goes to Scalding Lake State, gets a degree in Advanced Peasantry and lands a job at Thatch-Pro: building better cottages for a better tomorrow. You grow apart and the letters from him become fewer and fewer. He develops a severe mead problem and blames you for never being there."); Item trinket = new Item("Trinket", "This trinket is weird. It looks like it can either kill you or make you the hit of your Christmas party.", "You reach into the bush to snag you some berries but instead find a Super Trinket! These things are awesome! You have a sneaking suspicion that SOMEONE in this game will need this thing."); Item map = new Item("Map", "A map of Peasantry. The only remaining posession from your burninated cottage.", ""); Item shirt = new Item("Shirt", "This has got to be your favorite T-shirt ever. Oh, the times you had at Scalding Lake. Canoeing, fishing, stoning heathens. What a Blast!", ""); //Things //Rooms KerrekDomain a1 = new KerrekDomain(); PeacefulMeadow a2 = new PeacefulMeadow(); PeasantCottage a3 = new PeasantCottage(); PebbleLake b1 = new PebbleLake(); MountainPass b2 = new MountainPass(); YourCottage b3 = new YourCottage(); //Characters Kerrek kerrek = new Kerrek(); Knight knight = new Knight(); Lady lady = new Lady(); a1.AddCharacter(kerrek); b2.AddCharacter(knight); a3.AddCharacter(lady); //Relationships //automatically adds other half of relationship(East-West, North-South) b1.AddDirection("west", a1); a1.AddDirection("south", a2); b2.AddDirection("west", a2); a2.AddDirection("south", a3); b3.AddDirection("west", a3); b1.AddDirection("south", b2); b2.AddDirection("south", b3); //Add Items to Areas // a1.AddItem(belt); a2.AddItem(trinket); b3.AddItem(robe); b1.AddItem(sword); //Player Init CurrentPlayer = new Player("Rather Dashing"); CurrentPlayer.Inventory.Add(shirt); //starting position CurrentArea = b2; }