//chamber or cavern public string Chamber() { Randomizer r = new Randomizer(); Encounter e = new Encounter(); Dressing d = new Dressing(); string _rm; int check = r.RandNumber(1, 22); if (check < 18) { //stoneworked chamber _rm = "The room you've found is a stoneworked chamber. It is " + ChamberSize() + NumberOfExits() + d.RoomDress() + RoomContents(); return _rm; } else if (check < 22) { //natural cavern _rm = "The room you've found is a natural cavern. It is " + CavernSize() + NumberOfExits() + d.RoomDress() + RoomContents(); return _rm; } else { //special room _rm = "The room you've found is " + SpecialRoom() + NumberOfExits() + d.RoomDress() + RoomContents(); return _rm; } }
//d.RoomName().Replace("and appears to have been used as ", ""); public string Stuff() { Dressing d = new Dressing(); NameGen n = new NameGen(); //get items based on radio buttons if (rbAttributes.Checked) {i1=d.MagicAttribute(); i2=d.MagicAttribute(); i3=d.MagicAttribute(); i4=d.MagicAttribute(); i5=d.MagicAttribute(); i6=d.MagicAttribute(); i7=d.MagicAttribute(); i8=d.MagicAttribute(); i9=d.MagicAttribute(); i10=d.MagicAttribute();} else if (rbClothing.Checked) {i1=d.Clothing(); i2=d.Clothing(); i3=d.Clothing(); i4=d.Clothing(); i5=d.Clothing(); i6=d.Clothing(); i7=d.Clothing(); i8=d.Clothing(); i9=d.Clothing(); i10=d.Clothing();} else if (rbFeatures.Checked) {i1=d.RoomFeature(); i2=d.RoomFeature(); i3=d.RoomFeature(); i4=d.RoomFeature(); i5=d.RoomFeature(); i6=d.RoomFeature(); i7=d.RoomFeature(); i8=d.RoomFeature(); i9=d.RoomFeature(); i10=d.RoomFeature();} else if (rbFood.Checked) {i1=d.Food(); i2=d.Food(); i3=d.Food(); i4=d.Food(); i5=d.Food(); i6=d.Food(); i7=d.Food(); i8=d.Food(); i9=d.Food(); i10=d.Food();} else if (rbGenDeco.Checked) {i1=d.GeneralDeco(); i2=d.GeneralDeco(); i3=d.GeneralDeco(); i4=d.GeneralDeco(); i5=d.GeneralDeco(); i6=d.GeneralDeco(); i7=d.GeneralDeco(); i8=d.GeneralDeco(); i9=d.GeneralDeco(); i10=d.GeneralDeco();} else if (rbItem.Checked) {i1=d.Type(); i2=d.Type(); i3=d.Type(); i4=d.Type(); i5=d.Type(); i6=d.Type(); i7=d.Type(); i8=d.Type(); i9=d.Type(); i10=d.Type();} else if (rbNoise.Checked) {i1=d.Noise(); i2=d.Noise(); i3=d.Noise(); i4=d.Noise(); i5=d.Noise(); i6=d.Noise(); i7=d.Noise(); i8=d.Noise(); i9=d.Noise(); i10=d.Noise();} else if (rbPersBelong.Checked) {i1=d.Belonging(); i2=d.Belonging(); i3=d.Belonging(); i4=d.Belonging(); i5=d.Belonging(); i6=d.Belonging(); i7=d.Belonging(); i8=d.Belonging(); i9=d.Belonging(); i10=d.Belonging();} else if (rbRoomName.Checked) {i1=d.RoomName().Replace("and appears to have been used as ", "") ; i2=d.RoomName().Replace("and appears to have been used as ", "") ; i3=d.RoomName().Replace("and appears to have been used as ", "") ; i4=d.RoomName().Replace("and appears to have been used as ", "") ; i5=d.RoomName().Replace("and appears to have been used as ", "") ; i6=d.RoomName().Replace("and appears to have been used as ", "") ; i7=d.RoomName().Replace("and appears to have been used as ", "") ; i8=d.RoomName().Replace("and appears to have been used as ", "") ; i9=d.RoomName().Replace("and appears to have been used as ", "") ; i10=d.RoomName().Replace("and appears to have been used as ", "") ;} else if (rbSpices.Checked) {i1=d.Spice(); i2=d.Spice(); i3=d.Spice(); i4=d.Spice(); i5=d.Spice(); i6=d.Spice(); i7=d.Spice(); i8=d.Spice(); i9=d.Spice(); i10=d.Spice();} else if (rbTempDeco.Checked) {i1=d.TempleDeco(); i2=d.TempleDeco(); i3=d.TempleDeco(); i4=d.TempleDeco(); i5=d.TempleDeco(); i6=d.TempleDeco(); i7=d.TempleDeco(); i8=d.TempleDeco(); i9=d.TempleDeco(); i10=d.TempleDeco();} else if (rbTortDeco.Checked) {i1=d.TortureDeco(); i2=d.TortureDeco(); i3=d.TortureDeco(); i4=d.TortureDeco(); i5=d.TortureDeco(); i6=d.TortureDeco(); i7=d.TortureDeco(); i8=d.TortureDeco(); i9=d.TortureDeco(); i10=d.TortureDeco();} else if (rbVial.Checked) {i1=d.VialMatter(); i2=d.VialMatter(); i3=d.VialMatter(); i4=d.VialMatter(); i5=d.VialMatter(); i6=d.VialMatter(); i7=d.VialMatter(); i8=d.VialMatter(); i9=d.VialMatter(); i10=d.VialMatter();} else if (rbWind.Checked) {i1=d.AirCurrent(); i2=d.AirCurrent(); i3=d.AirCurrent(); i4=d.AirCurrent(); i5=d.AirCurrent(); i6=d.AirCurrent(); i7=d.AirCurrent(); i8=d.AirCurrent(); i9=d.AirCurrent(); i10=d.AirCurrent();} else if (rbOdor.Checked) { i1 = d.Odor().Replace("there is a ", ""); i2 = d.Odor().Replace("there is ", ""); i3 = d.Odor().Replace("there is a ", ""); i4 = d.Odor().Replace("there is a ", ""); i5 = d.Odor().Replace("there is a ", ""); i6 = d.Odor().Replace("there is a ", ""); i7 = d.Odor().Replace("there is a ", ""); i8 = d.Odor().Replace("there is a ", ""); i9 = d.Odor().Replace("there is a ", ""); i10 = d.Odor().Replace("there is a ", ""); } else if (rbGenDressing.Checked) {i1=d.GeneralDressing(); i2=d.GeneralDressing(); i3=d.GeneralDressing(); i4=d.GeneralDressing(); i5=d.GeneralDressing(); i6=d.GeneralDressing(); i7=d.GeneralDressing(); i8=d.GeneralDressing(); i9=d.GeneralDressing(); i10=d.GeneralDressing();} else if (rbWizaDeco.Checked) { i1 = d.WizardDeco(); i2 = d.WizardDeco(); i3 = d.WizardDeco(); i4 = d.WizardDeco(); i5 = d.WizardDeco(); i6 = d.WizardDeco(); i7 = d.WizardDeco(); i8 = d.WizardDeco(); i9 = d.WizardDeco(); i10 = d.WizardDeco(); } else if (rbSyl.Checked) { i1 = n.GenRandSylName(); i2 = n.GenRandSylName(); i3 = n.GenRandSylName(); i4 = n.GenRandSylName(); i5 = n.GenRandSylName(); i6 = n.GenRandSylName(); i7 = n.GenRandSylName(); i8 = n.GenRandSylName(); i9 = n.GenRandSylName(); i10 = n.GenRandSylName(); } else { MessageBox.Show("You must select a category of item to generate."); } string _stuff = " 1. " + i1 + Environment.NewLine + " 2. " + i2 + Environment.NewLine + " 3. " + i3 + Environment.NewLine + " 4. " + i4 + Environment.NewLine + " 5. " + i5 + Environment.NewLine + " 6. " + i6 + Environment.NewLine + " 7. " + i7 + Environment.NewLine + " 8. " + i8 + Environment.NewLine + " 9. " + i9 + Environment.NewLine + "10. " + i10; return _stuff; }