示例#1
0
 public RaidBot(PokeBotConfig cfg, RaidSettings raid, IDumper folder, BotCompleteCounts counts) : base(cfg)
 {
     Settings = raid;
     Dump     = folder;
     Counts   = counts;
     ldn      = Settings.UseLdnMitm;
 }
示例#2
0
 public EggBot(PokeBotConfig cfg, PokeTradeHub <PK8> Hub) : base(cfg)
 {
     hub                 = Hub;
     Counts              = Hub.Counts;
     DumpSetting         = Hub.Config.Folder;
     ContinueGettingEggs = Hub.Config.Egg.ContinueAfterMatch;
 }
示例#3
0
 public FossilBot(PokeBotConfig cfg, FossilSettings fossil, IDumper dump, BotCompleteCounts count) : base(cfg)
 {
     Counts        = count;
     DumpSetting   = dump;
     Settings      = fossil;
     FossilSpecies = fossil.Species;
 }
示例#4
0
        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]);
            }
        }
示例#5
0
 public EncounterBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg)
 {
     Hub         = hub;
     Counts      = Hub.Counts;
     DumpSetting = Hub.Config.Folder;
     DesiredIVs  = StopConditionSettings.InitializeTargetIVs(Hub);
 }
示例#6
0
 public FossilBot(PokeTradeHub <PK8> hub, PokeBotConfig cfg) : base(cfg)
 {
     Counts        = hub.Counts;
     DumpSetting   = hub.Config;
     FossilSpecies = hub.Config.FossilSpecies;
     Settings      = hub.Config;
 }
示例#7
0
 public FossilBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg)
 {
     Hub         = hub;
     Counts      = Hub.Counts;
     DumpSetting = Hub.Config.Folder;
     Settings    = Hub.Config.Fossil;
 }
示例#8
0
 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;
 }
示例#9
0
 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" : "";
 }
示例#10
0
 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;
 }
示例#11
0
 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" : "";
 }
示例#12
0
 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" : "";
 }
示例#13
0
 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;
 }
示例#14
0
        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]);
            }
        }
示例#15
0
 public PokeTradeBot(PokeTradeHub <PK8> hub, PokeBotConfig cfg) : base(cfg)
 {
     Hub             = hub;
     DumpSetting     = hub.Config.Folder;
     GiveawaySetting = hub.Config.Giveaway;
 }
示例#16
0
 public EggBot(PokeBotConfig cfg, EggSettings egg, IDumper dump, BotCompleteCounts count) : base(cfg)
 {
     Counts              = count;
     DumpSetting         = dump;
     ContinueGettingEggs = egg.ContinueAfterMatch;
 }
示例#17
0
 public RaidBot(PokeBotConfig cfg, PokeTradeHub <PK8> hub) : base(cfg)
 {
     Hub      = hub;
     Settings = hub.Config.Raid;
     Counts   = hub.Counts;
 }
 public RemoteControlBot(PokeBotConfig cfg) : base(cfg)
 {
 }
示例#19
0
 public EggBot(PokeBotConfig cfg, BotCompleteCounts counts) : base(cfg) => Counts = counts;
示例#20
0
 public PokeTradeBot(PokeTradeHub <PK8> hub, PokeBotConfig cfg) : base(cfg) => Hub = hub;
示例#21
0
 public PokeTradeBot(PokeTradeHub <PK8> hub, PokeBotConfig cfg) : base(cfg)
 {
     Hub         = hub;
     DumpSetting = hub.Config;
 }
示例#22
0
 public EggBot(PokeTradeHub <PK8> hub, PokeBotConfig cfg) : base(cfg)
 {
     Counts      = hub.Counts;
     DumpSetting = hub.Config;
 }