private void SaveButton_Click(object sender, EventArgs e) { MessageBox.Show("BPL Settings have been saved.", "Save"); BattlePetLevelerSettings.Instance.Save(); BattlePetLeveler.BPLLog("Settings Saved"); Close(); }
// =========================================================== // Constants // =========================================================== // =========================================================== // Fields // =========================================================== // =========================================================== // Constructors // =========================================================== // =========================================================== // Getter & Setter // =========================================================== // =========================================================== // Methods for/from SuperClass/Interfaces // =========================================================== // =========================================================== // Methods // =========================================================== public static void UseRandomAbility() { var randNum = RandomNumber.GenerateRandomInt(1, 3); var getCanUseAbility = PetBattles.GetAbilityState(1, 1, randNum); if (getCanUseAbility[0] == "0") { PriorityTreeState.UsedRandomAbility = false; } else { BattlePetLeveler.BPLLog("used " + randNum); PriorityTreeState.UsedRandomAbility = true; PetBattles.UseAbility(randNum); } PriorityTreeState.UsedRandomAbility = true; }