public FossilBot(PokeTradeHub <PK8> hub, PokeBotConfig cfg) : base(cfg) { Counts = hub.Counts; DumpSetting = hub.Config; FossilSpecies = hub.Config.FossilSpecies; Settings = hub.Config; }
public EggBot(PokeBotConfig cfg, PokeTradeHub <PK8> Hub) : base(cfg) { hub = Hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; ContinueGettingEggs = Hub.Config.Egg.ContinueAfterMatch; AnyRandomEgg = Hub.Config.Egg.AnyRandomEgg; DesiredNature = Hub.Config.Egg.DesiredNature; /* Populate DesiredIVs array. Bot matches 0 and 31 IVs. * Any other nonzero IV is treated as a minimum accepted value. * If they put "x", this is a wild card so we can leave -1. */ string[] splitIVs = Hub.Config.Egg.DesiredIVs.Split(new[] { '/' }, StringSplitOptions.RemoveEmptyEntries); // Only accept up to 6 values in case people can't count. for (int i = 0; i < 6 && i < splitIVs.Length; i++) { if (splitIVs[i] == "x" || splitIVs[i] == "X") { continue; } DesiredIVs[i] = Convert.ToInt32(splitIVs[i]); } }
public EggBot(PokeBotConfig cfg, PokeTradeHub <PK8> Hub) : base(cfg) { hub = Hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; ContinueGettingEggs = Hub.Config.Egg.ContinueAfterMatch; }
public RaidBot(PokeBotConfig cfg, RaidSettings raid, IDumper folder, BotCompleteCounts counts) : base(cfg) { Settings = raid; Dump = folder; Counts = counts; ldn = Settings.UseLdnMitm; }
public FossilBot(PokeBotConfig cfg, FossilSettings fossil, IDumper dump, BotCompleteCounts count) : base(cfg) { Counts = count; DumpSetting = dump; Settings = fossil; FossilSpecies = fossil.Species; }
public EncounterBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; DesiredIVs = StopConditionSettings.InitializeTargetIVs(Hub); }
public OverworldScan(PokeBotState cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; StopConditionSettings.InitializeTargetIVs(Hub, out DesiredMinIVs, out DesiredMaxIVs); }
public FossilBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; Settings = Hub.Config.Fossil; }
public FossilBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; Settings = Hub.Config.Fossil; Ping = !Hub.Config.PingOnMatch.Equals(string.Empty) ? $"<@{Hub.Config.PingOnMatch}>\n" : ""; }
public FossilBot(PokeBotConfig cfg, PokeTradeHub <PK8> Hub) : base(cfg) { Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; Settings = Hub.Config.Fossil; FossilSpecies = Settings.Species; CaptureVideo = Hub.Config.CaptureVideoClip; }
public EggBot(PokeBotConfig cfg, PokeTradeHub <PK8> Hub) : base(cfg) { hub = Hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; ContinueGettingEggs = Hub.Config.Egg.ContinueAfterMatch; Ping = !Hub.Config.PingOnMatch.Equals(string.Empty) ? $"<@{Hub.Config.PingOnMatch}>\n" : ""; }
public RaidBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Settings = Hub.Config.Raid; Dump = Hub.Config.Folder; Counts = Hub.Counts; ldn = Settings.UseLdnMitm; }
public EggBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Counts = Hub.Counts; DumpSetting = Hub.Config.Folder; DesiredIVs = StopConditionSettings.InitializeTargetIVs(Hub); Ping = !Hub.Config.StopConditions.PingOnMatch.Equals(string.Empty) ? $"<@{Hub.Config.StopConditions.PingOnMatch}>\n" : ""; }
public PokeTradeHub(PokeTradeHubConfig config) { Config = config; Pool = new PokemonPool <T>(config); Barrier = new Barrier(0, ReleaseBarrier); BarrierReleasingActions.Add(() => LogUtil.Log(LogLevel.Info, $"{Barrier.ParticipantCount} bots released.", "Barrier")); Counts = new BotCompleteCounts(Config); }
public PokeTradeHub(PokeTradeHubConfig config) { Config = config; var pool = new PokemonPool <T>(config); Ledy = new LedyDistributor <T>(pool); BotSync = new BotSynchronizer(config.Distribute); BotSync.BarrierReleasingActions.Add(() => LogUtil.LogInfo($"{BotSync.Barrier.ParticipantCount} bots released.", "Barrier")); Counts = new BotCompleteCounts(config.Counts); Queues = new TradeQueueManager <T>(this); }
public RaidBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Settings = hub.Config.Raid; Dump = hub.Config.Folder; Counts = hub.Counts; ldn = Settings.UseLdnMitm; RaidLog = Settings.RaidLog; FriendCode = Settings.FriendCode; Roll = Settings.AutoRoll; FRBoth = Settings.FriendCombined; FRAdd = Settings.FriendAdd; FriendRemoveCount = Settings.FriendPurge; }
public PokeTradeHub(PokeTradeHubConfig config) { Config = config; var giveawayPoolDatabase = new GiveawayPool(config); GiveawayPoolDatabase = giveawayPoolDatabase; BotSync = new BotSynchronizer(config.Distribution); BotSync.BarrierReleasingActions.Add(() => LogUtil.LogInfo($"{BotSync.Barrier.ParticipantCount} bots released.", "Barrier")); Counts = new BotCompleteCounts(config.Counts); Queues = new TradeQueueManager <T>(this); }
public EncounterBot(PokeBotConfig cfg, EncounterSettings encounter, IDumper dump, BotCompleteCounts count) : base(cfg) { Counts = count; DumpSetting = dump; StopOnSpecies = encounter.StopOnSpecies; Mode = encounter.EncounteringType; DesiredNature = encounter.DesiredNature; /* Populate DesiredIVs array. Bot matches 0 and 31 IVs. * Any other nonzero IV is treated as a minimum accepted value. * If they put "x", this is a wild card so we can leave -1. */ string[] splitIVs = encounter.DesiredIVs.Split(new [] { '/' }, StringSplitOptions.RemoveEmptyEntries); // Only accept up to 6 values in case people can't count. for (int i = 0; i < 6 && i < splitIVs.Length; i++) { if (splitIVs[i] == "x" || splitIVs[i] == "X") { continue; } DesiredIVs[i] = Convert.ToInt32(splitIVs[i]); } }
public EggBot(PokeTradeHub <PK8> hub, PokeBotConfig cfg) : base(cfg) { Counts = hub.Counts; DumpSetting = hub.Config; }
public RaidBot(PokeBotState cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Settings = hub.Config.Raid; Counts = hub.Counts; }
public EggBot(PokeBotConfig cfg, BotCompleteCounts counts) : base(cfg) => Counts = counts;
public EggBot(PokeBotConfig cfg, EggSettings egg, IDumper dump, BotCompleteCounts count) : base(cfg) { Counts = count; DumpSetting = dump; ContinueGettingEggs = egg.ContinueAfterMatch; }
public PokeTradeHub(PokeTradeHubConfig config) { Config = config; Counts = new BotCompleteCounts(config.Counts); }
public OverworldBot(PokeBotState cfg, PokeTradeHub <PK8> hub) : base(cfg) { Hub = hub; Counts = Hub.Counts; }