// Display the currently selected method and odds public void setMethodDisplay() { if (this.method != "") { try { methodDisplayBtn.Text = "1/" + Odds.getOdds(method, count, shinyCharm) + "\n" + method; } catch (Exception e) { Console.WriteLine(e.Message); } } }
// Check if current method requires updating odds dynamically, update them if so public void updateOdds() { string[] dynamicMethods = { "SoS Calls", "Catch Combo (No Lure)", "Catch Combo (With Lure)", "Chain Fishing", "Dex Nav", "Poke Radar (Gen 4)", "Poke Radar (Gen 6)" }; if (dynamicMethods.Contains(method)) { setOdds(Odds.getOdds(method, count, shinyCharm)); setMethodDisplay(); } }
private void radar2Btn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Poke Radar (Gen 6)", mainForm.count, shinyCharm)); mainForm.setMethod("Poke Radar (Gen 6)"); }
private void adventureBtn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Dynamax Adventures", mainForm.count, shinyCharm)); mainForm.setMethod("Dynamax Adventures"); }
private void hordeBtn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Hordes", mainForm.count, shinyCharm)); mainForm.setMethod("Hordes"); }
private void chainFishBtn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Chain Fishing", mainForm.count, shinyCharm)); mainForm.setMethod("Chain Fishing"); }
private void dexNavBtn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Dex Nav", mainForm.count, shinyCharm)); mainForm.setMethod("Dex Nav"); }
private void combo2Btn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Catch Combo (No Lure)", mainForm.count, shinyCharm)); mainForm.setMethod("Catch Combo (No Lure)"); }
private void sosBtn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("SoS Calls", mainForm.count, shinyCharm)); mainForm.setMethod("SoS Calls"); }
private void newMasudaBtn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Masuda (Gen 6+)", mainForm.count, shinyCharm)); mainForm.setMethod("Masuda (Gen 6+)"); }
private void friendSafariBtn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("Friend Safari", mainForm.count, shinyCharm)); mainForm.setMethod("Friend Safari"); }
private void sr1Btn_Click(object sender, EventArgs e) { mainForm.setOdds(Odds.getOdds("SRs (Gen 1-5)", mainForm.count, shinyCharm)); mainForm.setMethod("SRs (Gen 1-5)"); }
public void setShinyCharm(bool charm) { shinyCharm = charm; setOdds(Odds.getOdds(method, count, shinyCharm)); setMethodDisplay(); }