Ejemplo n.º 1
0
        protected override async Task AddPlayer(SocketReaction reaction)
        {
            if (PlayerMessages.Values.Any(s => (s.avatar.ID == reaction.UserId)))
            {
                return;
            }
            SocketGuildUser player       = (SocketGuildUser)reaction.User.Value;
            var             playerAvatar = UserAccounts.GetAccount(player);
            var             factory      = new PlayerFighterFactory();
            var             p            = factory.CreatePlayerFighter(player);

            if (Difficulty == BattleDifficulty.Tutorial || Difficulty == BattleDifficulty.Easy)
            {
                if (playerAvatar.LevelNumber < 10 && Battle.SizeTeamA == 0)
                {
                    internalDiff = BattleDifficulty.Tutorial;
                    SetNextEnemy();
                }
                else if (Difficulty == BattleDifficulty.Tutorial)
                {
                    internalDiff = BattleDifficulty.Easy;
                    SetNextEnemy();
                }
            }

            if (playerAvatar.Inv.GetGear(AdeptClassSeriesManager.GetClassSeries(playerAvatar).Archtype).Any(i => i.Name == "Lure Cap"))
            {
                LureCaps++;
                SetNextEnemy();
            }

            await AddPlayer(p);
        }
Ejemplo n.º 2
0
        protected virtual async Task AddPlayer(SocketReaction reaction, Team team)
        {
            if (Teams[Team.A].PlayerMessages.Values.Any(s => (s.avatar.ID == reaction.UserId)))
            {
                return;
            }
            if (Teams[Team.B].PlayerMessages.Values.Any(s => (s.avatar.ID == reaction.UserId)))
            {
                return;
            }
            SocketGuildUser player = (SocketGuildUser)reaction.User.Value;

            if (team == Team.B)
            {
                await player.AddRoleAsync(TeamBRole);

                playersWithBRole.Add(player);
            }
            var playerAvatar = UserAccounts.GetAccount(player);

            var factory = new PlayerFighterFactory()
            {
                LevelOption = LevelOption.SetLevel,
                SetLevel    = 60
            };
            var p = factory.CreatePlayerFighter(player);

            await AddPlayer(p, team);
        }
Ejemplo n.º 3
0
        protected virtual async Task AddPlayer(SocketReaction reaction)
        {
            if (PlayerMessages.Values.Any(s => (s.avatar.ID == reaction.UserId)))
            {
                return;
            }
            SocketGuildUser player       = (SocketGuildUser)reaction.User.Value;
            var             playerAvatar = UserAccounts.GetAccount(player);

            var factory = new PlayerFighterFactory();
            var p       = factory.CreatePlayerFighter(player);

            await AddPlayer(p);
        }
Ejemplo n.º 4
0
        protected override async Task AddPlayer(SocketReaction reaction)
        {
            if (PlayerMessages.Values.Any(s => (s.avatar.ID == reaction.UserId)))
            {
                return;
            }
            SocketGuildUser player       = (SocketGuildUser)reaction.User.Value;
            var             playerAvatar = UserAccounts.GetAccount(player);
            var             factory      = new PlayerFighterFactory();
            var             p            = factory.CreatePlayerFighter(player);

            if (playerAvatar.Inv.GetGear(AdeptClassSeriesManager.GetClassSeries(playerAvatar).Archtype).Any(i => i.Name == "Lure Cap"))
            {
                LureCaps++;
                SetNextEnemy();
            }

            await AddPlayer(p);
        }
Ejemplo n.º 5
0
 public override object Clone()
 {
     return(factory.CreatePlayerFighter(UserAccountProvider.GetById(Id)));
 }
Ejemplo n.º 6
0
 public override object Clone()
 {
     return(factory.CreatePlayerFighter(guildUser));
 }