public void BuildButton_Click(object sender, EventArgs e) { godCol = new GodCollector(); itemCol = new ItemCollector(MapSelectionList.SelectedValue); //Setup for next roll //this.GeneralTextBox.Visible = false; GeneralTextBox.Text = "Welcome to DankSmite!\nClick the Build button to get a god and a build! C" + "lick the pictures to reroll them, should you want to do so!\n\n\nWorks for smite ve" + "rsion: " + SmiteVersion + "\nDanksmite version: " + Assembly.GetExecutingAssembly().GetName().Version.ToString(2); //this.GeneralTextBox.Visible = false; //this.CurrentItemNameLabel.Text = ""; RerollNumber.Text = 0.ToString(); CredsFlag = false; WelcomeFlag = false; DetailsFlag = false; //Making input easier GodNameInterpreter(); //Some dankness #region Dank if (InputField.Text == "op") { //_god = new God("Ymir", "g"); //for (int i = 0; i < 6; i++) //{ // Build[i] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //} //Build[6] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //Build[7] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //Build[8] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); //legalBoots = itemCol.RetrieveLegalBoots(new List<ItemColorType> { ItemColorType.Damage }, GodType.Guardian); //legalItems = itemCol.RetrieveLegalItems(new List<ItemColorType> { ItemColorType.Damage }, GodType.Guardian); //legalRelics = itemCol.RetrieveLegalRelics(); //legalStarters = itemCol.RetrieveLegalStarters(new List<ItemColorType> { ItemColorType.Damage }, GodType.Guardian); } else if (InputField.Text.ToLower() == "trickermand") { //_god = new God("Ymir", "g"); //Build[0] = new Item("Shoes_of_the_Magi", "dmg", true, false, false); //Build[1] = new Item("Dynasty_Plate_Helm", "hyb", true, false, false); //Build[2] = new Item("BreastPlate_of_Valor", "def", true, true, false); //Build[3] = new Item("Hide_of_the_Urchin", "def", true, true, false); //Build[5] = new Item("Shogun's_Kusari", "dmg", true, false, false); //Build[4] = new Item("Obsidian_Shard", "dmg", true, false, false); //Build[6] = new Item("Blink_Rune", "dmg", true, true, false); //Build[7] = new Item("Magic_Shell", "dmg", true, true, false); //Build[8] = new Item("Mark_of_the_Vanguard", "dmg", false, true, false); //legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); //legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); //legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); //legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } else if (InputField.Text.ToLower() == "nazzyc") { //_god = new God("Medusa", "h"); //for (int i = 0; i < 6; i++) //{ // Build[i] = new Item("Odysseus'_Bow", "dmg", false, true, false); //} //Build[6] = new Item("Bracer_of_Undoing", "def", true, true, false); //Build[7] = new Item("Bracer_of_Undoing", "def", true, true, false); //Build[8] = new Item("Odysseus'_Bow", "dmg", false, true, false); //legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); //legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); //legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); //legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } else if (InputField.Text.ToLower() == "kloppermand") { //_god = new God("Ares", "g"); //Build[0] = new Item("Shoes_of_the_Magi", "dmg", true, false, false); //Build[1] = new Item("Void_Stone", "hyb", true, false, false); //Build[2] = new Item("Mystical_Mail", "def", true, true, false); //Build[3] = new Item("Hide_of_the_Urchin", "def", true, true, false); //Build[4] = new Item("Obsidian_Shard", "dmg", true, false, false); //Build[5] = new Item("Rod_of_Tahuti", "dmg", true, false, false); //Build[6] = new Item("Blink_Rune", "hyb", true, true, false); //Build[7] = new Item("Shield_of_Thorns", "def", true, true, false); //Build[8] = new Item("Mark_of_the_Vanguard", "def", true, true, false); //legalBoots = itemCol.RetrieveLegalBoots(true, true, true, God.godType); //legalItems = itemCol.RetrieveLegalItems(true, true, true, God.godType); //legalRelics = itemCol.RetrieveLegalRelics(true, true, true, God.godType); //legalStarters = itemCol.RetrieveLegalStarters(true, true, true, God.godType); } #endregion //Validation of proper input else if (!((AssassinCheckbox.Checked == false && this.GuardianCheckbox.Checked == false && this.HunterCheckbox.Checked == false && this.MageCheckbox.Checked == false && this.WarriorCheckbox.Checked == false) || (this.DamageCheckbox.Checked == false && this.DefenseCheckbox.Checked == false && this.HybridCheckbox.Checked == false))) { if (string.IsNullOrEmpty(InputField.Text)) { FullRebuild(CreateItemTypeListFromCheckBoxes(), CreateGodTypeListFromCheckBoxes()); } else { FullRebuild(InputField.Text, CreateItemTypeListFromCheckBoxes()); } } else { _god = new God("Ymir", GodType.Guardian, "Ymir.png"); for (int i = 0; i < 6; i++) { Build[i] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); } Build[6] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); Build[7] = new Item("Blink_Rune", "Blink-Rune-png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); Build[8] = new Item("Deathbringer", "DeathBringer.png", GodType.Guardian, ItemColorType.Damage, MapTypes.Joust); legalBoots = itemCol.RetrieveLegalBoots(new List <ItemColorType> { ItemColorType.Damage }, GodType.Guardian); legalItems = itemCol.RetrieveLegalItems(new List <ItemColorType> { ItemColorType.Damage }, GodType.Guardian); legalRelics = itemCol.RetrieveLegalRelics(); legalStarters = itemCol.RetrieveLegalStarters(new List <ItemColorType> { ItemColorType.Damage }, GodType.Guardian); } //Sets labels //this.StarterItemLabel.Visible = true; //this.RelicLabel1.Visible = true; //this.RelicLabel2.Visible = true; //this.ItemLabel1.Visible = true; //this.ItemLabel2.Visible = true; //this.ItemLabel3.Visible = true; //this.ItemLabel4.Visible = true; //this.ItemLabel5.Visible = true; //this.ItemLabel6.Visible = true; //clickedRebuild = true; Draw(); }