private static string random_wall() { List <string> strs = new List <string>() { string.Concat("The walls of this area are ", RoomBuilder.random_material(), ".") }; string[] strArrays = new string[] { "The walls of this area are ", RoomBuilder.random_material(), " and ", RoomBuilder.random_material(), "." }; strs.Add(string.Concat(strArrays)); strs.Add(string.Concat("The floor of this area is made from ", RoomBuilder.random_material(), ".")); string[] strArrays1 = new string[] { "The walls of this area are made of ", RoomBuilder.random_material(), ", while the ceiling and floor are ", RoomBuilder.random_material(), "." }; strs.Add(string.Concat(strArrays1)); strs.Add("This area has been hewn out of solid rock."); strs.Add("This area has been panelled in dark wood."); int num = Session.Random.Next() % strs.Count; return(strs[num]); }
public static string Details() { List <string> strs = new List <string>(); while (strs.Count == 0) { if (Session.Random.Next(2) == 0) { strs.Add(RoomBuilder.random_wall()); } if (Session.Random.Next(3) == 0) { strs.Add(RoomBuilder.random_finish()); } if (Session.Random.Next(4) == 0) { strs.Add(RoomBuilder.random_air()); } if (Session.Random.Next(5) == 0) { strs.Add(RoomBuilder.random_smell()); } if (Session.Random.Next(5) == 0) { strs.Add(RoomBuilder.random_sound()); } if (Session.Random.Next(10) != 0) { continue; } strs.Add(RoomBuilder.random_activity()); } string str = ""; foreach (string str1 in strs) { if (str != "") { str = string.Concat(str, " "); } str = string.Concat(str, str1); } return(str); }
private static string random_finish() { List <string> strs = new List <string>() { "The walls here are covered in black soot." }; string[] strArrays = new string[] { "The walls are ", RoomBuilder.random_style(), " with ", RoomBuilder.random_deco(), "." }; strs.Add(string.Concat(strArrays)); strs.Add("Claw marks cover the walls here."); strs.Add(string.Concat("The walls have been painted ", RoomBuilder.random_colour(), ".")); strs.Add("It is possible to tell that the walls were once plastered."); strs.Add("Here and there, graffiti covers the walls."); strs.Add("A thick layer of dust covers the room."); strs.Add("Moss and lichen grows here and there on the walls."); strs.Add("The patina of age covers the walls."); strs.Add("Childlike drawings and sketches cover the walls."); strs.Add("Cryptic signs have been scratched into the walls."); int num = Session.Random.Next() % strs.Count; return(strs[num]); }