public Account(string login, string password, string deck, string profile, string mulligan, Bot.Mode mode) { Login = login; Password = password; Deck = deck; Profile = profile; Mulligan = mulligan; Mode = mode; CapReached = false; }
private void Init() { if (!DataContainer.Enabled) { return; } _defaultProfile = ((bPluginDataContainer)DataContainer).DefaultProfile; _arenaMulligan = ((bPluginDataContainer)DataContainer).ArenaMulligan; _arenaProfile = ((bPluginDataContainer)DataContainer).ArenaProfile; _defaultMulligan = ((bPluginDataContainer)DataContainer).DefaultMulligan; _goldToKeep = ((bPluginDataContainer)DataContainer).GoldAmountToKeep; _arenaPrice = 150; _oldMode = ((bPluginDataContainer)DataContainer).DefaultMode; Bot.Log("[PLUGIN] -> ArenaSwitcher : Initialized..."); Bot.Log("[PLUGIN] -> ArenaSwitcher : Keep " + _goldToKeep + " gold"); if (!string.IsNullOrEmpty(_defaultProfile) && !string.IsNullOrEmpty(_defaultMulligan)) { Bot.Log("[PLUGIN] -> ArenaSwitcher : Default settings -> " + _defaultProfile + " - " + _defaultMulligan); } else { Bot.Log("[PLUGIN] -> ArenaSwitcher : You need to set default deck and profile settings"); } if (!string.IsNullOrEmpty(_arenaProfile) && !string.IsNullOrEmpty(_arenaMulligan)) { Bot.Log("[PLUGIN] -> ArenaSwitcher : Arena settings -> " + _arenaProfile + " - " + _arenaMulligan); } else { Bot.Log("[PLUGIN] -> ArenaSwitcher : You need to set arena deck and profile settings"); } if ((Bot.CurrentMode() != Bot.Mode.Arena && Bot.CurrentMode() != Bot.Mode.ArenaAuto)) { if (ShouldSwitchToArena()) { SwitchToArena(); } } }
// Return current mode private static string CurrentMode(Bot.Mode mode) { switch (mode) { case Bot.Mode.Arena: case Bot.Mode.ArenaAuto: return("Arena"); case Bot.Mode.Standard: return("Standard"); case Bot.Mode.Wild: return("Wild"); case Bot.Mode.Classic: return("Classic"); default: return("Wild"); } }
private Mode ConvertMode(Bot.Mode mode) { switch (mode) { case Bot.Mode.Arena: case Bot.Mode.ArenaAuto: return(Mode.ARENA); case Bot.Mode.Standard: return(Mode.RANKED_STANDARD); case Bot.Mode.Wild: return(Mode.RANKED_WILD); case Bot.Mode.Classic: return(Mode.RANKED_CLASSIC); default: return(Mode.RANKED_WILD); } }
private bool IsArenaMode(Bot.Mode mode) { return(mode == Bot.Mode.Arena || mode == Bot.Mode.ArenaAuto); }
private bool IsStandardMode(Bot.Mode mode) { return(mode == Bot.Mode.UnrankedStandard || mode == Bot.Mode.RankedStandard); }